A fun and interactive console-based Rock-Paper-Scissors game written in C++.
Play against the computer in multiple rounds and see who wins! ๐
โ๏ธ Supports up to 10 rounds per game.
โ๏ธ Randomized computer choices using rand().
โ๏ธ Real-time results after each round.
โ๏ธ Colored screen feedback:
- โ Green if the player wins.
- โ Red + Bell Sound if the computer wins.
- ๐ถ Yellow for a draw.
โ๏ธ Final Game Summary at the end of all rounds.
โ๏ธ Option to play again after each game.
1๏ธโฃ Run the program.
2๏ธโฃ Enter the number of rounds (1 to 10).
3๏ธโฃ Choose your move:
- ๐ชจ
1for Rock - ๐
2for Paper - โ๏ธ
3for Scissors
4๏ธโฃ The computer will randomly pick a move.
5๏ธโฃ The winner of each round is determined based on standard rules: - ๐ชจ Rock beats โ๏ธ Scissors.
- โ๏ธ Scissors beat ๐ Paper.
- ๐ Paper beats ๐ชจ Rock.
6๏ธโฃ After all rounds, the final winner is displayed.
7๏ธโฃ Choose whether to play again or exit.
The game is built using C++ and structured into multiple functions:
๐น User Input: Reads player choice & number of rounds.
๐น Game Logic: Determines round winners based on game rules.
๐น Randomization: Uses rand() for computer moves.
๐น Screen Effects: Changes console color based on round results.
๐น Game Loop: Repeats the game if the player wants to play again.
- ๐ฉ Green Screen โ Player wins the round.
- ๐ฅ Red Screen + Sound โ Computer wins the round.
- ๐จ Yellow Screen โ Round is a draw.
๐ฅ๏ธ Language: C++
๐ Concepts: Loops, Functions, Structs, Enums, Randomization
This project is open-source. Feel free to modify and use it! ๐
Suggestions & improvements are always welcome!
Fork the repo and submit a Pull Request. ๐