Rock Paper Scissors - Xiao-XC/C-Practice-Projects GitHub Wiki

Rock-Paper-Scissors

Type: Bro Code course project Date: Sept 2026 Concepts: function prototypes, getUserChoice() / getComputerChoice() / checkWinner(), return values, do-while validation, switch, && / ||

What it does

Plays Rock Paper Scissors against the computer, with input validation and a winner decided by compound conditions.

What I learned

This was my first project that splits logic into separate functions instead of putting everything in main(). Each function does one job, which made the code easier to read. I also practiced returning a value and using it directly, and combining conditions to cover all three winning cases.

Source

[View the code on GitHub](https://github.com/Xiao-XC/C-Practice-Projects/tree/main/Rock-Paper-Scissors)

Back to Home