Skip to content

Python Snake–Water–Gun game | 5 rounds | Score tracking | Replay option | Colorful console output 🎯

Notifications You must be signed in to change notification settings

ubanand36/Snake_Water_Gun_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

🐍 Snake Water Gun Game 🎯 A fun Python console game where you play against the computer using the classic Snake-Water-Gun rules! Test your luck, earn points, and replay as many times as you want.

🚀 Features ✅ 5 rounds per match ✅ Real-time score tracking ✅ Colorful console output using ANSI escape codes ✅ Random computer choices using Python’s random module ✅ Replay option without restarting the game

🎮 How to Play

  1. Clone this repository: git clone https://github.com/your-username/snake-water-gun-game.git cd snake-water-gun-game

  2. Run the game in your terminal: python snake_water_gun.py

  3. Choose your weapon each round: snake water gun

  4. The winner is decided based on:

    🐍 Snake drinks Water → Snake wins 💧 Water damages Gun → Water wins 🔫 Gun kills Snake → Gun wins

🧮 Scoring System

Result Points (You) Points (Computer) 🏆 Win +2 0 🤝 Draw +1 +1 ❌ Lose 0 +2

🕹️ Rules of the Game

  1. There are 5 rounds in one match.
  2. Player with the highest score at the end wins.
  3. You can choose to play again after each game.

⚙️ Requirements

Python 3.x

🧑‍💻 Author Anand Kumar Patel Made with ❤️ in Python for fun and learning.

🌟 Contribute If you’d like to contribute or improve the game, feel free to fork this repository and open a pull request!
If you like the game don't forget to star this repo.

About

Python Snake–Water–Gun game | 5 rounds | Score tracking | Replay option | Colorful console output 🎯

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages