zenrootz / snake_game

0 stars 0 forks source link

snake_test

Introduction

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.

Features

Game Controls

Starting the Game:

Controlling the Snake:

Viewing High Scores

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

Viewing High Scores

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.

Installation

To set up and run the Snake Game, follow these steps:

  1. Ensure you have Python installed on your system. You can download it from python.org.

  2. Install pygame, which is required to run the game:

    pip install pygame
  3. Clone the game's repository from GitHub:

    git clone https://github.com/your-repository-url/snake_game.git
    cd snake_game
  4. Run the game using Python:

    python src/main.py

This will start the game, and you can begin playing immediately.

Installation

Before starting the game, ensure you have pygame installed:

pip install pygame

Running the Game

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!

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.

Note: If the `error_log.txt` file does not exist in the `src` directory when you run the game, it will be created automatically.