Crates.io | retris |
lib.rs | retris |
version | 0.3.0 |
source | src |
created_at | 2023-06-07 11:16:08.458011 |
updated_at | 2023-06-09 15:05:10.554796 |
description | This is a Rust implementation of tetris using the Cursive library |
homepage | |
repository | https://github.com/genieCS/tetris-rs |
max_upload_size | |
id | 884670 |
size | 63,864 |
This is a simple implementation of the classic Tetris game in Rust using Cursive library.
https://github.com/genieCS/retris/assets/35099832/010d9acb-c2f3-4fb2-aee5-656bc8d42225
This is a Tetris game implementation with additional keyboard shortcuts for easier block manipulation. In this game, you can move the blocks to the leftmost or rightmost position using the added shortcuts, and rotate them in the opposite direction and flipturn which is 180 degree rotation. This makes it easier to play the game with fewer keyboard inputs.
To 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/geniecs/retris.git
cd retris
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 or 40 lines are cleared.
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.