A command line implementation of the classic Rock Paper Scissors game written in C.
The player competes against a computer that randomly selects its move.
The game tracks the number of wins, total rounds played and calculates the win rate.
- Player vs computer gameplay
- Random bot choice
- Score tracking
- Win rate calculation
- Continuous gameplay loop
- Option to exit the game
1– Paper2– Rock3– Scissors0– Exit game
- The player selects a move
- The computer randomly generates its move
- The result is determined:
- win
- lose
- draw
- Score and number of games are updated
- The game continues until the player exits
- C programming language
- Standard C libraries
stdlib.hfor random numberstime.hfor random seed
- Organizing code using functions
- Using
switchstatements - Implementing game logic
- Generating random values with
rand() - Tracking game statistics
- Using loops for continuous gameplay
Software engineering student at ITS