nix-snake 0.1.0

A NixOS themed classic snake game with screensaver mode & gameplay mode
nix-snake-0.1.0 is not a library.

nix-snake â„ī¸đŸ

A lightweight, terminal-based Snake game and screensaver written in Rust.

Watch a NixOS Lambda (Îģ) navigate your terminal, consuming snowflakes and packages in an infinite loop, or take control and play yourself.

Status: Active Development 🚧


✨ Features

  • đŸ–Ĩī¸ Screensaver Mode (Autopilot): The snake plays itself using a greedy pathfinding algorithm. Perfect for a terminal background.

  • 🎮 Seamless Override: Press any arrow key to instantly switch from "Screensaver" to "Manual" mode. Press a to switch back.

  • â„ī¸ NixOS Themed: The snake head is a Lambda (Îģ), eating snowflakes (❄) and packages (đŸ“Ļ).

  • 🚀 Performance: Built with pure crossterm for low-latency rendering and minimal resource usage.

  • 🔄 Infinity Walls: The world wraps around the edges of your terminal.


đŸ“Ļ Installation From Source

Ensure you have Rust and Cargo installed.

git clone https://github.com/saylesss88/nix-snake cd nix-snake
cargo install --path .

crates.io

cargo install nix-snake

đŸ•šī¸ Controls

  • a: Switch to Autopilot (Screensaver) Mode

  • q/ Esc: Quit