A fun Python-based game similar to Rock-Paper-Scissors, but with a twist! Test your luck and strategy against the computer in a 10-turn challenge of Snake 🐍, Water 💦, and Gun 🔫.
- Snake 🐍 beats Water 💦
- Water 💦 beats Gun 🔫
- Gun 🔫 beats Snake 🐍
Choose your move wisely and aim for victory!
- Interactive gameplay with a computer opponent.
- Displays real-time scores after each round.
- Declares the winner at the end of 10 rounds.
- Clone the Repository
Clone this repository to your local machine using the following command:
git clone https://github.com/HarshKumarSaw/Snake-Water-Gun.git- Run the Game
Ensure Python is installed on your system. Run the game using the following command:
cd Snake-Water-Gunpython snake_water_gun.py- Press S for Snake
- Press W for Water
- Press G for Gun
Computer : Welcome to Snake Water Gun program, press -
S for Snake
W for Water
G for Gun
Enter your name : Harsh
Harsh : I choose - S
Snake > Water so, you got +1 point
-
The computer randomly selects Snake, Water, or Gun.
-
You make your choice by entering S, W, or G.
-
The game compares choices to determine the winner of each round.
-
Scores are updated and displayed after every turn.
-
At the end of 10 rounds, the overall winner is announced.
Programming Language: Python
Modules: random
Contributions are welcome! Feel free to fork the repository, make improvements, and submit a pull request.
For more detailed guidelines on contributing, check out our Contribution Guide in the Wiki.
This project is licensed under the GNU GENERAL PUBLIC (GPL-3.0 license)