An open API service indexing awesome lists of open source software.

https://github.com/phantomion/snake_game

This is a simple implementation of the classic snake game in rust
https://github.com/phantomion/snake_game

rust snake snake-game

Last synced: about 1 year ago
JSON representation

This is a simple implementation of the classic snake game in rust

Awesome Lists containing this project

README

          

# My snake game

Looks like this. This is with Roboto Mono Nerd Font. If you use a different font it may look different or distorted.

![snake_game_image](https://raw.github.com/KostasKyriakou/snake_game/master/snake_game.jpg)

## Install rust
In order to play this you gotta have rust installed in your system.
You can do that with `sudo pacman -S rustup` (or any other package manager) and
then `rustup update stable`.

## Run snake_game
Simply `cargo run` to run this or `cargo install --path .` to install it.

### Keybindings
`w,a,s,d` like any game ever or `h,j,k,l` for vim users.`qq` to quit at any time.
`Space` to pause/start.

### Width and height
You can change the width and height of the game with `-h` and `-w` options(e.g. -h 20 -w 30).