This is a simple command-line game of Rock, Paper, Scissors implemented in C++. The player competes against the computer in this classic game.
- Run the game.
- You will be prompted to enter your choice: Rock, Paper, or Scissors.
- The computer's choice is generated randomly.
- The winner is determined based on the rules of the game:
- Rock crushes Scissors
- Scissors cuts Paper
- Paper covers Rock
- If you want to play again, enter 'y'. To quit the game, enter 'n'.
To compile the game, navigate to the directory containing the game file (game.cpp
) and run the following command:
g++ game.cpp -o game