/blocks-game

A command-line application to play at Tetris, using Rust.

Primary LanguageRust

blocks-game

A command-line application to play at Tetris, using Rust.

Requirements

To successful run this code, you need to have Rust and Cargo installed on your Machine.

For the instalation guide click here.

Getting started

Just clone the repo and use cargo to run the code as shown below

$ git clone https://github.com/federicobaldini/blocks-game
$ cd blocks-game
blocks-game->$ cargo run 

Controls

  • w + enter↲ to rotate the block;
  • a + enter↲ to move left the block;
  • d + enter↲ to move right the block;
  • s + enter↲ to move the block instantly to the bottom;
  • enter↲ to move down the block;

Actions w, a and d in addition to their behaviour, will move the block down of one step.

Game preview

blocks-game