Skip to content

DikshitSharma-ai/Snake-Water-Gun-Game-python-mini-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Snake-Water-Gun Game

A simple Python mini project where you play Snake-Water-Gun against the computer.


๐ŸŽฎ How the Game Works

  • You choose one option: snake, water, or gun
  • The computer randomly selects its choice
  • The winner is decided based on rules:
    • Snake drinks water โ†’ Snake wins
    • Water disables gun โ†’ Water wins
    • Gun kills snake โ†’ Gun wins

๐Ÿ” Game Flow

  • The game runs for 5 rounds
  • Each round:
    • User enters a choice
    • Computer generates a random choice
    • Winner is displayed
  • Final score is shown at the end

๐Ÿง  Concepts Used

  • Python Basics
  • Loops (for loop)
  • Conditional Statements (if-elif-else)
  • Lists
  • Random Module

โ–ถ๏ธ How to Run

  1. Make sure Python is installed
  2. Clone this repository:
    git clone https://github.com/your-username/snake-water-gun.git

About

This is a simple Python game where you play Snake-Water-Gun against the computer. You choose an option, and the computer picks randomly. The winner is decided by rules. The game runs for 5 rounds and shows the final score. It helps beginners learn loops, conditions, lists, and basic programming logic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages