A simple command-line implementation of the classic Snake, Water, Gun game built with Python. The game allows you to play against the computer, which makes random choices each round.
Snake, Water, Gun is a popular hand game similar to Rock, Paper, Scissors.
- ๐ Snake beats ๐ง Water
- ๐ง Water beats ๐ซ Gun
- ๐ซ Gun beats ๐ Snake
- Same choices result in a draw.
- Interactive command-line gameplay
- Random computer opponent
- Input validation
- Win/Loss/Draw determination
- Beginner-friendly Python project
- Python 3
Make sure Python 3 is installed on your computer.
- Clone the repository:
git clone https://github.com/ali4xk/SnakeWaterGunGame.git- Navigate to the project folder:
cd SnakeWaterGunGame- Run the program:
python main.pyNote: If your Python file has a different name, replace
main.pywith your actual filename.
SnakeWaterGunGame/
โ
โโโ main.py
โโโ README.md
โโโ .gitignore
This project helped me practice:
- Python fundamentals
- Conditional statements (
if,elif,else) - User input handling
- Random number generation
- Basic game logic
- Using Git and GitHub for version control
Contributions, suggestions, and improvements are welcome. Feel free to fork the repository and submit a pull request.
This project is open source and available under the MIT License.
โญ If you found this project interesting, consider giving the repository a star!