Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zyad-eltayabi/stone-paper-scissors-game

Stone Paper Scissors Game using C++
https://github.com/zyad-eltayabi/stone-paper-scissors-game

cpp functions

Last synced: 6 days ago
JSON representation

Stone Paper Scissors Game using C++

Awesome Lists containing this project

README

        

# Rock, Paper, Scissors Game

## Objective
The objective of this game is to compete against the computer and try to win a series of rounds by making smart choices in selecting options.

## Game Rules
1. The game includes three main options: Rock, Paper, Scissors.
2. Each option has a specific rule for how it can win or lose against the others:
- Rock: Beats Scissors and loses to Paper.
- Paper: Beats Rock and loses to Scissors.
- Scissors: Beat Paper and lose to Rock.

## How to Play
1. The number of rounds to be played is determined, and it must be between 1 and 10 rounds.
2. The player and the computer start each round by choosing one of the three options.
3. After making the choices, the player's choice is compared to the computer's choice, and the winner of that round is determined.
4. The winner of each round is recorded, whether it's the player or the computer.

## Example of the Game
- The player chooses Rock.
- The computer chooses Paper.
- The computer wins this round because Paper beats Rock.
- This process is repeated until the specified number of rounds is completed.

## Round Details
Details of each round, including player and computer choices and the result of the round, are recorded.

## Final Winner
In the end, the final winner of the game is announced based on the number of rounds won by the player and the computer. The winner is the one who wins the majority of the rounds.

## Restarting the Game
After completing the game, the user can decide whether to start the game again or exit the game.

## Running the Game
To play the game, the user should execute the provided source code in the program file.

Enjoy the game!