This ASCII-based snake game works best on Mac's native terminal.
- Clone the repository:
- Install the required packages:
pip install -r requirements.txt
Run the game by executing the following command in your terminal: python src/snake.py
Use the arrow keys to move the snake in the desired direction.
Eat the food (represented by &
) to grow and increase your score.
Avoid hitting the walls or yourself, as that will end the game.
After losing, you'll be prompted to restart the game by entering Y
or to exit by entering N
.