Skip to content

ali4xk/SnakeWaterGunGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Snake Water Gun Game

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.

๐ŸŽฎ About

Snake, Water, Gun is a popular hand game similar to Rock, Paper, Scissors.

Game Rules

  • ๐Ÿ Snake beats ๐Ÿ’ง Water
  • ๐Ÿ’ง Water beats ๐Ÿ”ซ Gun
  • ๐Ÿ”ซ Gun beats ๐Ÿ Snake
  • Same choices result in a draw.

โœจ Features

  • Interactive command-line gameplay
  • Random computer opponent
  • Input validation
  • Win/Loss/Draw determination
  • Beginner-friendly Python project

๐Ÿ› ๏ธ Built With

  • Python 3

๐Ÿš€ Getting Started

Prerequisites

Make sure Python 3 is installed on your computer.

Run the Project

  1. Clone the repository:
git clone https://github.com/ali4xk/SnakeWaterGunGame.git
  1. Navigate to the project folder:
cd SnakeWaterGunGame
  1. Run the program:
python main.py

Note: If your Python file has a different name, replace main.py with your actual filename.

๐Ÿ“‚ Project Structure

SnakeWaterGunGame/
โ”‚
โ”œโ”€โ”€ main.py
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ .gitignore

๐Ÿ“š What I Learned

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

๐Ÿค Contributing

Contributions, suggestions, and improvements are welcome. Feel free to fork the repository and submit a pull request.

๐Ÿ“„ License

This project is open source and available under the MIT License.


โญ If you found this project interesting, consider giving the repository a star!

About

A fun implementation of the classic Snake, Water, Gun game in Python. Built to strengthen Python fundamentals, including conditionals, loops, random number generation, and user input handling.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages