This is a simple implementation of the classic Tetris game in Rust using Cursive library.
a
and d
keys respectivelyw
key↑
or e
keys↓
key
keym
keyn
keyTo install and run the game, you'll need to have Rust and Cargo installed on your system. Once you have Rust and Cargo installed, you can clone the repository and run the game using the following commands:
git clone https://github.com/your-username/tetris.git
cd tetris
cargo run
Or you can download the crate from crates.io with following command:
cargo install retris
The goal of the game is to clear as many lines as possible by fitting the falling blocks together. Use the keyboard controls to move and rotate the blocks as they fall. The game ends when the blocks reach the top of the screen.
This project was inspired by the classic Tetris game and Cursive library for Rust.
This project is licensed under the MIT License. See the LICENSE file for details.