Skip to content

Snake-Water-Gun-Game: A Python implementation of the classic "Snake, Water, Gun" game where players compete against the computer in multiple rounds, with colorful outputs using the colorama library.

License

Notifications You must be signed in to change notification settings

Goyam02/Snake-Water-Gun-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Snake Water Gun Game

Welcome to the Snake Water Gun game! This is a simple command-line game where you play against the computer.

How to Play

  1. Clone the repository to your local machine.
  2. Ensure you have Python installed.
  3. Install the required dependencies using:
    pip install colorama
  4. Run the game using:
    python swg1.py

Game Rules

  • Snake vs Water: Snake wins
  • Water vs Gun: Water wins
  • Gun vs Snake: Gun wins
  • If both players choose the same, the game is a tie.

Features

  • Play multiple rounds.
  • Scores are tracked for both the player and the computer.
  • Colorful terminal output using the colorama library.

Example

Welcome to the Snake Water Gun!!
Enter the number of rounds you want to play: 3
You have 3 chances to play this game
You have to choose from the following: 
Snake, Water & Gun
The rules are as follows:
Snake vs Water: Snake wins
Water vs Gun: Water wins
Gun vs Snake: Gun wins
If both players choose the same, then the game is a tie
You will be playing against the computer

Round 1 of 3
Enter your choice:
Enjoy the game! 

LICENSE

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

Author

GOYAM JAIN

About

Snake-Water-Gun-Game: A Python implementation of the classic "Snake, Water, Gun" game where players compete against the computer in multiple rounds, with colorful outputs using the colorama library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages