Skip to content

A Python-based implementation of the nostalgic Snake-Water-Gun game, bringing back childhood memories in a fun and interactive way

License

Notifications You must be signed in to change notification settings

HarshKumarSaw/Snake-Water-Gun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Snake Water Gun Game

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 🔫.

How to Play

Snake Water Gun Game Rules

  • Snake 🐍 beats Water 💦
  • Water 💦 beats Gun 🔫
  • Gun 🔫 beats Snake 🐍

Choose your move wisely and aim for victory!

Features

  • Interactive gameplay with a computer opponent.
  • Displays real-time scores after each round.
  • Declares the winner at the end of 10 rounds.

Installation

  1. Clone the Repository
    Clone this repository to your local machine using the following command:
git clone https://github.com/HarshKumarSaw/Snake-Water-Gun.git
  1. Run the Game
    Ensure Python is installed on your system. Run the game using the following command:
cd Snake-Water-Gun
python snake_water_gun.py

Game Controls

  • Press S for Snake
  • Press W for Water
  • Press G for Gun

Example Gameplay

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

How It Works

  1. The computer randomly selects Snake, Water, or Gun.

  2. You make your choice by entering S, W, or G.

  3. The game compares choices to determine the winner of each round.

  4. Scores are updated and displayed after every turn.

  5. At the end of 10 rounds, the overall winner is announced.

Technologies Used

Programming Language: Python

Modules: random

Contribution

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.

License

This project is licensed under the GNU GENERAL PUBLIC (GPL-3.0 license)

About

A Python-based implementation of the nostalgic Snake-Water-Gun game, bringing back childhood memories in a fun and interactive way

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages