Skip to content

wpdevelopment11/blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blocks game

A tetris clone for a 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.

About

A tetris clone for a terminal

Topics

Resources

License

Stars

Watchers

Forks

Languages