Skip to content

[mirror] A terminal-based Snake game written in Nim using illwill for curses-style graphics

Notifications You must be signed in to change notification settings

lbartoletti/nsnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nsnake

Get it on Codeberg

Issue Tracker

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.

Features

  • 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

Installation

You can install nsnake using Nimble:

nimble install nsnake

Dependencies

  • Nim (>= 2.0.0)
  • illwill

Usage

After installation, simply run:

nsnake

Controls

  • Move Up: or k
  • Move Down: or j
  • Move Left: or h
  • Move Right: or l
  • Restart Game: r
  • Quit: q or Esc

High Scores

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

Building from Source

To build from source:

git clone https://github.com/lbartoletti/nsnake.git
cd nsnake
nimble build

License

This project is released under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Author

  • lbartoletti (Loïc Bartoletti)

Acknowledgments

  • Thanks to the creators of illwill for providing the terminal graphics library
  • Inspired by the classic Snake game

About

[mirror] A terminal-based Snake game written in Nim using illwill for curses-style graphics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages