Coder Social home page Coder Social logo

rs_snake's Introduction

Build Status

Snake ...

... with your friends ...

... on your command line!

This is an implementation of the classic game Snake in Rust. It runs in all UNIX and Windows terminals without using any GUI framework or window manager.

Demo

Try it out!

Using prebuilt binaries

We provide prebuilt binaries for both Windows and Linux. So if you just want to play a quick game you can head over to the Releases section and download the latest release for your platform: Latest Release

Building from Source

Building it yourself is straightforward:

git clone https://github.com/baurst/rs_snake.git
cd rs_snake
cargo run --release

Controls

At the moment, up to two players are supported. The controls for making the snake turn left or right are:

  • Player 1: arrow keys
  • Player 2: WASD keys

Pressing Esc or q will terminate the game.

Options

The game provides options to change to multiplayer mode (using --multi).

Difficulty of the game (i.e. speed of the snake) is adjustable using either --easy or --hard:

$ rs_snake --help
snake 0.3.0
Author: baurst
Classic snake game for your terminal

USAGE:
    rs_snake [FLAGS]

FLAGS:
    -e, --easy                sets difficulty to easy
    -h, --hard                sets difficulty to hard
        --help                Prints help information
    -m, --multi               enables multiplayer mode
    -t, --two_key_steering    steer the snakes using two keys only (increased difficulty)
    -V, --version             Prints version information

rs_snake's People

Contributors

baurst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isgasho hoangpq

rs_snake's Issues

Four arrows control

Hi, thanks for this nice game!

Would that be possible to have a four arrows control feature?

That could be a feature enabled with an option if not set by default.

I would set option this by default.

Blind colour

I am not sure the choose colours are nice for blind colour people.

I am lightly blind colour, and I have issues to see the red on the black screen on the Game over layer.

The colours of the snake could also be better.

I do not know more about how to solve this colours blindness.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.