A simple terminal-based Snake game written in Python. Use the arrow keys to move, eat fruit to grow, and avoid hitting the walls or biting your own tail.
- You control the snake using the arrow keys
- Eat the fruit (
$) to grow and increase your score - The snake’s body is shown as
O - The game ends if you:
- hit the wall, or
- collide with your own body (“snake bite”)
- ↑ Up
- ↓ Down
- ← Left
- → Right
- Python 3.x
- The
keyboardlibrary
Install dependencies:
pip install keyboard