Skip to content

Luckysenapati/Snake-Water-Gun-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Snake-Water-Gun-Game

Snake Water Gun is a fun and interactive web-based game inspired by the classic hand game, similar to Rock Paper Scissors. The game is built using HTML, CSS, and JavaScript and offers a clean user interface with real-time gameplay and score tracking.

The player competes against the computer by choosing Snake, Water, or Gun, while the computer randomly selects its move. Based on predefined rules, the winner is decided instantly and the scoreboard updates accordingly.

๐ŸŽฎ Game Rules

Snake drinks Water โ†’ Snake wins

Water damages Gun โ†’ Water wins

Gun kills Snake โ†’ Gun wins

Same choice by both โ†’ Tie

โœจ Features

Interactive button-based gameplay

Live Scoreboard (User, CPU, Tie)

Scores persist until Reset

Clean and responsive UI (Mobile & Desktop)

Beginner-friendly JavaScript logic

Well-structured and readable code

๐Ÿ› ๏ธ Technologies Used

HTML โ€“ Structure of the game

CSS โ€“ Styling and responsive design

JavaScript โ€“ Game logic and interactivity

๐Ÿš€ How to Play

Click on Snake, Water, or Gun

The computer makes a random choice

Result is displayed instantly

Scores update automatically

Click Reset to start fresh

๐Ÿ”— Project Links

Replit Project: https://replit.com/@luckysenapatilu/snakewatergungame?v=1

Live Demo: https://snakewatergungame--luckysenapatilu.replit.app/

About

Snake Water Gun is a fun and interactive web-based game inspired by the classic hand game, similar to Rock Paper Scissors. The game is built using HTML, CSS, and JavaScript and offers a clean user interface with real-time gameplay and score tracking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors