Snake, Water, Gun is a console-based game developed in C. It simulates the classic hand game with simple text-based interactions. Ideal for learning basic game logic, conditional statements, and user input handling in C.
This project is a simple console-based Snake-Water-Gun game implemented in C. It simulates a game between a user and the computer, where each player can choose between "snake", "water", or "gun". The game then decides the winner based on standard rules.
s
), Water (w
), or Gun (g
).git clone https://github.com/your-username/snake-water-gun-game.git
cd snake-water-gun-game
gcc -o snake_water_gun snake_water_gun.c
./snake_water_gun
Usage
File Structure
Enter s for snake, w for water, g for gun
s
You chose s and computer chose w : You win!