abdul2801 / snake-tui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Game

This is a snake game written in rust for the terminal with greedy algorithm.

How to play

Use the arrow keys to move the snake. The goal is to eat as many apples as possible without hitting the walls or the snake itself.

How to run

To run the game, you need to have rust installed. Then, clone the repository and run the following command in the root directory of the project:

cargo run

How to build

To build the game, you need to have rust installed. Then, clone the repository and run the following command in the root directory of the project:

cargo build --release

The executable will be in the target/release directory.

About


Languages

Language:Rust 100.0%