Skip to content

Khanakag-17/Python-Games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🎮 Python Mini Games Collection

Python Games CLI App Status

This repository contains fun and simple Python-based mini games playable via the command line. Great for beginners who want to understand input/output handling, randomization, and control structures in Python.

🎲 Included Games

1. 🔢 Perfect Guess Game

Guess the randomly generated number in as few attempts as possible. The game gives you hints whether your guess is too high or too low — perfect for practicing loops and conditions!

➡️ File: Perfect_guess_game.py

2. 🐍💧🔫 Snake Water Gun Game

A Python version of the classic "Rock Paper Scissors" — but with a twist! Snake drinks water, water drowns gun, and gun kills snake. You play against the computer with randomized moves.

➡️ File: Snake_water_gun_game.py

▶️ How to Play

1. Clone the Repository

git clone https://github.com/Khanakag-17/Python-Games.git
cd Python-Games

2. Run Any Game

Perfect Guess Game:

python Perfect_guess_game.py

Snake Water Gun Game:

python Snake_water_gun_game.py

Make sure you have Python 3.x installed.

📌 Example Output

Perfect Guess Game

Welcome to the Perfect Guess Game!
Guess the number between 1 and 100:
Your guess: 50
Too high! Try again.
...
Correct! You guessed it in 6 tries 🎉

Snake Water Gun Game

Your Turn: Snake(S) Water(W) or Gun(G)? s
Computer chose: g
You lose! Gun kills snake.

About

Fun Python CLI games like Snake-Water-Gun and Number Guess — beginner-friendly and modular.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages