A simple Snake game implemented in Python using Tkinter. Control the snake to collect food, grow in size, and earn points.
- Interactive Gameplay: Control the snake with arrow keys.
- Scoring System: Earn points by eating food.
- Collision Detection: Game ends if the snake hits itself or the boundaries.
- Dynamic Growth: Snake grows longer after eating food.
- Python 3.6 or later (Tkinter included).
- Clone or download the repository.
- Open a terminal and navigate to the project directory.
- Run the game with:
python snake_game.py
- Arrow Keys to move:
Up,Down,Left,Right.
Adjust the following constants in the code:
GAME_WIDTHandGAME_HEIGHT: Game window size.SPEED: Game speed (lower value = faster).SNAKE_COLORandFOOD_COLOR: Colors of snake and food.
Enjoy playing!