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.
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
- 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