Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 956 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 956 Bytes

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, without the T-Spin rules. I also used this guide as a reference.

Rustris

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