A terminal-based Snake game written in Nim using illwill for curses-style graphics.
The main repository is on codeberg, which is where the issue tracker may be found and where contributions are accepted.
Read-only mirrors exist on sourcehut and github.
- Classic Snake gameplay in your terminal
- vim-style controls (hjkl) and arrow keys support
- High score tracking
- Cross-platform support (Windows, macOS, Linux)
- Configurable game settings
- Smooth terminal graphics using illwill
You can install nsnake using Nimble:
nimble install nsnake- Nim (>= 2.0.0)
- illwill
After installation, simply run:
nsnake- Move Up:
↑ork - Move Down:
↓orj - Move Left:
←orh - Move Right:
→orl - Restart Game:
r - Quit:
qorEsc
The game automatically saves your high score in a configuration file:
- Windows:
%APPDATA%\nsnake.ini - macOS:
~/Library/Application Support/nsnake.ini - Unix/Linux:
~/.local/share/nsnake.ini
To build from source:
git clone https://github.com/lbartoletti/nsnake.git
cd nsnake
nimble buildThis project is released under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- lbartoletti (Loïc Bartoletti)
- Thanks to the creators of illwill for providing the terminal graphics library
- Inspired by the classic Snake game