#snake #game #food #score #control #console-game

app snake_game

A snake game

1 unstable release

0.1.0 Dec 29, 2024

#69 in Games

Download history 86/week @ 2024-12-25 14/week @ 2025-01-01

100 downloads per month

MIT license

8KB
165 lines

Snake Game in Rust

A simple terminal-based Snake Game built in Rust with no external dependencies.

This game lets you control a snake to collect food while avoiding collisions with itself and the walls. The game is displayed on a grid, where your snake grows longer each time it eats food.

Features

  • Pure Rust: No dependencies, using SystemTime for randomness.
  • Terminal-based: Fully interactive console game.
  • Dynamic Scoring: Your score increases as you eat food, and it's displayed at the top.
  • Controls: Use w, a, s, and d to control the snake’s movement. Press q to quit.

Installation

  1. Clone this repository:
    git clone https://github.com/Jaisinh/snake_game/
    

No runtime deps