A single-player classic snake game where the player controls a growing snake that eats food on the screen.
Here’s a quick look at the game in action:
| Button | Action |
|---|---|
| A_UP | Move up |
| A_DOWN | Move down |
| A_LEFT | Move left |
| A_RIGHT | Move right |
| EXIT | Exit game |
- Grid: 20×15 blocks (each block = 2 bytes → total: 600 bytes)
- Snake coordinates and apple stored in structured memory
- Movement based on indexed updates of the snake body
The snake is represented as a list of coordinates in a buffer.
When it eats food, it grows longer.
- Read input
- Move snake
- Check collisions
- Update screen
- Delay
- Collision with self
- Exit input is received
- Add speed increase for higher difficulty over time

