Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 744 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 744 Bytes

ASCII Snake Game

This ASCII-based snake game works best on Mac's native terminal.

Screen Recording 2024-11-23 at 8 33 08

Installation

  1. Clone the repository:
  2. Install the required packages: pip install -r requirements.txt

How to Play

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.

Restarting the Game

After losing, you'll be prompted to restart the game by entering Y or to exit by entering N.