https://github.com/jstnlef/rustris
An implementation of Tetris written in Rust.
https://github.com/jstnlef/rustris
game rust tetris
Last synced: 9 months ago
JSON representation
An implementation of Tetris written in Rust.
- Host: GitHub
- URL: https://github.com/jstnlef/rustris
- Owner: jstnlef
- License: mit
- Created: 2016-03-06T02:47:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-08T02:05:20.000Z (almost 9 years ago)
- Last Synced: 2024-11-09T00:34:44.537Z (about 1 year ago)
- Topics: game, rust, tetris
- Language: Rust
- Size: 615 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rustris
This is my attempt at building a Tetris clone in Rust using the Piston game engine. The goal was to
try to emulate the rules of Standard Tetris as closely as possible. The scoring follows these
[guidelines](http://tetris.wikia.com/wiki/Scoring#Recent_guideline_compatible_games), without the
T-Spin rules. I also used [this guide](http://www.colinfahey.com/tetris/tetris.html) as a reference.

## Build Instructions
Compiles with Rust 1.8.
To build and run the executable:
cargo run --release
To build the executable:
cargo build --release
To run the tests:
cargo test
## Key Bindings
* Left and Right arrows move the tetromino left and right respectively
* Up rotates the tetromino clockwise
* Down increases the rate of decent of the tetromino (soft-drop)
* Space snaps the piece immediately to the location of the ghost-piece (hard-drop)
* P pauses the game
* Escape quits