FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

wpdevelopment11/blocks: A tetris clone for the terminal that works on Windows and Linux. It is written in Python using a library called blessed. · GitHub

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository 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.

About

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

Watchers

0 watching

Forks

Contributors

Languages


Back | FazBrowse Home | New Git URL