snake_game

Crates.iosnake_game
lib.rssnake_game
version0.1.0
created_at2024-12-29 16:48:20.824481+00
updated_at2024-12-29 16:48:20.824481+00
descriptionA snake game
homepage
repository
max_upload_size
id1498333
size15,009
(Jaisinh)

documentation

README

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/
    
    
Commit count: 0

cargo fmt