Skip to content

prajapati-satyam/snake-water-gun-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake-Water-Gun Game

This is a simple, fun Snake-Water-Gun game built with HTML, CSS, and JavaScript. Test your luck against the computer in this classic game, where each choice—snake, water, or gun—competes to win according to a set of rules.

Play Now: Snake-Water-Gun Game

Game Rules

  • Snake vs. Water: Snake drinks water → Snake wins.
  • Water vs. Gun: Water douses gun → Water wins.
  • Gun vs. Snake: Gun shoots snake → Gun wins.
  • If both the player and computer select the same item, it’s a draw.

How to Play

  1. Click on one of the options: Snake, Water, or Gun.
  2. The computer will make its choice randomly.
  3. The winner will be determined based on the game rules above, and the result will display on the screen.

Installation

If you'd like to run this game locally:

  1. Clone the Repository:

    git clone https://github.com/prajapati-satyam/snake-water-gun-game
    cd snake-water-gun-game