Skip to content

Latest commit

 

History

17 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

Blocks game

A tetris clone for the terminal, written in Python.

Uses blessed for drawing and keyboard input. The game is tested on Windows and Linux.

Watch a demo

Install

First, install blessed which is used to interact with a terminal.

pip install blessed

Now, you can run the game:

python blocks.py

Game controls

Key Action
, , Move left, right and down respectively.
Rotate clockwise.
Space Drop to the bottom of the grid.
Q Quit the game.

Run tests

File test_learntris.py contains the learntris implementation, which you can run as described here.

关于

A tetris clone for the terminal that works on Windows and Linux. It is written in Python using a library called blessed.

Topics

Resources

Stars

1 star

关注者

0 watching

复刻s

贡献者

Languages