pyBegin / projects / snake-water-gun-game

Snake Water Gun Game

A console version of the snake-water-gun game (a rock-paper-scissors variant). The snake drinks the water, the gun shoots the snake, and the gun ha…

84 lines🖥 Desktop only

Snake Water Gun Game

A console version of the snake-water-gun game (a rock-paper-scissors variant). The snake drinks the water, the gun shoots the snake, and the gun has no effect on water. You play 10 rounds against the computer with colored terminal output.

Example

                 Snake,Water,Gun Game

s for snake, w for water, g for gun

Enter your choice >> s
You guessed s and Computer guessed g.
Computer wins 1 point
9 chance(s) are left out of 10 chances.

Enter your choice >> g
You guessed g and Computer guessed s.
Human wins 1 point
8 chance(s) are left out of 10 chances.
...
Game over!
You won and Computer lost.
Your points: 6  Computer points: 3

How to run on localhost

pip install rich
python Snake_Water_Gun_Game.py

Dependencies

rich