Repository navigation
PyAISnake v2.0.0 - CLI Version
π Major Release - Complete CLI Migration
BREAKING CHANGES
- Removed tkinter GUI
- Game is now CLI-only
New Features
- Rich-based rendering - Beautiful terminal UI with Unicode/ASCII support
- Keyboard input - Cross-platform real-time input handling
- CLI commands:
pyaisnake play- Play manuallypyaisnake ai --visualize- Watch AI playpyaisnake train --algorithm neural- Train AIpyaisnake stats- View statistics
- AI algorithms: A*, Neural Network, Genetic Algorithm, Random
Installation
uv sync
uv run pyaisnake playControls
- Arrow keys / WASD - Move
- P / Space - Pause
- R - Restart
- Q / Esc - Quit
Tests
- 12 tests for game engine
- All passing
Structure
pyaisnake/
βββ engine.py # Pure game logic
βββ renderer.py # Rich CLI rendering
βββ controller.py # Keyboard input
βββ cli.py # Entry point
βββ ai/ # AI algorithms