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/