Rock Paper Scissors

Python44 lines· A console Rock-Paper-Scissors game. The player picks a move each round, the computer picks randomly, and the score is tracked until the player choo…
Original project by @ZackeryRSmith — view source on GitHub
Ready when you are
README· what to build

Rock Paper Scissors

A console Rock-Paper-Scissors game. The player picks a move each round, the computer picks randomly, and the score is tracked until the player chooses to exit.

Example

1. Rock, 2. Paper, 3. Scissors, 4. Exit: 1
You chose Rock and computer chose Scissors
You Win!

1. Rock, 2. Paper, 3. Scissors, 4. Exit: 2
You chose Paper and computer chose Paper
Its a draw.

1. Rock, 2. Paper, 3. Scissors, 4. Exit: 4
Your score is 1/1
Thanks for playing.

How to run on localhost

python main.py

Dependencies

Standard library only (uses random).

rps.py· Python 3.x
26 lines
Console· terminal