A classic Snake game that runs in your terminal, created in Python.
play_snake.py
- Main launcher (recommended way to run)snake_game.py
- Advanced version using curses librarysnake_simple.py
- Simple version using basic console outputREADME.md
- This file
python play_snake.py
The launcher will automatically try to run the best version available for your system.
For the advanced curses version:
python snake_game.py
For the simple console version:
python snake_simple.py
- Use Arrow Keys to move the snake
- Press Q to quit
- When game over, press R to restart or Q to quit
- Use W/A/S/D keys to move the snake (W=up, A=left, S=down, D=right)
- Press Q to quit
- Control the snake to eat food (โฆ)
- Each food eaten increases your score
- Don't hit the walls or your own body
- The snake grows longer with each food eaten
- Python 3.6+
- Windows (simple version uses Windows-specific input handling)
- The launcher automatically installs
windows-curses
if needed
- Two different implementations for maximum compatibility
- Automatic fallback between versions
- Score tracking
- Game over detection
- Restart functionality (in curses version)
Enjoy playing Snake!