Welcome to the Snake Game! Experience the classic snake gameplay with a modern twist. Enjoy randomly generated levels, smooth controls, and compete for a spot on the high scores chart.
Starting the Game:
python src/main.py
in your command line.Controlling the Snake:
To view the high scores chart, navigate to the in-game menu and select 'High Scores'. You will see the list of top 5 scores achieved by players.- W: Move Up
To view the high scores chart, navigate to the in-game menu and select 'High Scores'. You will see the list of top 5 scores achieved by players.
To set up and run the Snake Game, follow these steps:
Ensure you have Python installed on your system. You can download it from python.org.
Install pygame
, which is required to run the game:
pip install pygame
Clone the game's repository from GitHub:
git clone https://github.com/your-repository-url/snake_game.git
cd snake_game
Run the game using Python:
python src/main.py
This will start the game, and you can begin playing immediately.
Before starting the game, ensure you have pygame
installed:
pip install pygame
To start the game, open a command line, navigate to the repository's root directory, and run the following command:
python src/main.py
python main.py
This should open a new window where the game will start running. Use the WASD keys to control the snake.
This should open a new window where the game will start running. Use the WASD keys to control the snake.
Get ready to slither your way to the top of the leaderboard!
## Error Handling
If you encounter any errors while running the game, they will be documented in the `error_log.txt` file located in the `src` directory. This allows for easy troubleshooting and maintenance of the game.
```markdown
Note: If the `error_log.txt` file does not exist in the `src` directory when you run the game, it will be created automatically.
Get ready to slither your way to the top of the leaderboard!
If you encounter any errors while running the game, they will be documented in the error_log.txt
file located in the src
directory. This allows for easy troubleshooting and maintenance of the game.
Note: If the `error_log.txt` file does not exist in the `src` directory when you run the game, it will be created automatically.