An open API service indexing awesome lists of open source software.

https://github.com/extraltodeus/pytris

A tetris I made some time ago. It has all the functionnalities of a modern Tetris :)
https://github.com/extraltodeus/pytris

Last synced: about 1 year ago
JSON representation

A tetris I made some time ago. It has all the functionnalities of a modern Tetris :)

Awesome Lists containing this project

README

          

# Pytris
A tetris I made some time ago. It has all the functionnalities of a modern Tetris

## Dependancies :
pygame : pip install pygame

numpy : pip install numpy

## How to start it :
python3 pytris.py

or on Windows you can simply double-click on pytris.py

## Controls :
A : Swap current tetromino with reserve

S : Rotate left

D : Rotate right

W : Rotate 180°

R : Reset game

Arrow Up : Instant fall

Arrow Down : Fast fall

Arrow Left/Right : Left/Right

Space : Pause/Unpause

Escape : Quit

## Additional info :
The tetris.py file contains the Tetris class, which could be used to render a Tetris game in any way you want.

The pytris.py file is a quickly done script using pygame that uses this class.

## A screenshot :
![](https://i.imgur.com/C4kiFO9.png)