Skip to content

Rock, Paper, Scissors Game in C++. Play against the computer in this classic game. Enter your move and see if you can beat the computer!

Notifications You must be signed in to change notification settings

alfandirifaul/Rock-Paper-Scissor-Game-User-vs-Computer-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Rock, Paper, Scissors Game

This is a simple command-line game of Rock, Paper, Scissors implemented in C++. The player competes against the computer in this classic game.

How to Play

  1. Run the game.
  2. You will be prompted to enter your choice: Rock, Paper, or Scissors.
  3. The computer's choice is generated randomly.
  4. The winner is determined based on the rules of the game:
    • Rock crushes Scissors
    • Scissors cuts Paper
    • Paper covers Rock
  5. If you want to play again, enter 'y'. To quit the game, enter 'n'.

Compilation

To compile the game, navigate to the directory containing the game file (game.cpp) and run the following command:

g++ game.cpp -o game

About

Rock, Paper, Scissors Game in C++. Play against the computer in this classic game. Enter your move and see if you can beat the computer!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages