A classic Snake game implemented in Python, playable directly in your terminal! Built using the curses
library and a doubly linked list. Now available on PyPI for easy installation and play.
- 🕹️ Terminal-based gameplay: Play Snake directly in your terminal.
- 🎮 Smooth controls: Use arrow keys to control the snake's direction.
- 🍎 Dynamic growth: The snake grows longer as it eats food.
- ⏩ Progressive difficulty: Game speed increases as your score improves.
- 🛠️ Easy installation: Install and play with just one command.
You can install Snake Terminal directly from PyPI using pip
:
pip install snake-terminal
After installation, simply run the game from your terminal:
snake-terminal
Arrow keys (↑, ↓, ←, →): Change the snake's direction.
q: Quit the game.
Eat the food to grow the snake and increase your score. Avoid colliding with yourself!
The package is structured as follows:
snake-terminal/
├── snaketerm/ # Package source code
│ ├── __init__.py # Package initialization
│ ├── game.py # Game logic and loop
│ ├── main.py # Entry point
│ ├── snake.py # Snake class and movement logic
├── README.md # Project documentation
├── setup.py # Package setup and configuration
└── setup.cfg
Contributions are welcome! If you'd like to improve the game.
- Inspired by the classic Snake game.
- Built with Python's curses library for terminal-based graphics.
Enjoy the game! 🎉
If you have any questions or feedback, feel free to open an issue or reach out.