Skip to content

A text-based, colorful tetris implementation in python

License

Notifications You must be signed in to change notification settings

LeoLuxo/textris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Versions

Textris

A text-based, colorful tetris implementation. The challenge was to code a game of tetris without using any non-default libraries and by displaying everything through console.

Run it

Launch demo gif

Download/clone textris.py and run it inside CMD or your favorite ANSI-compatible terminal. (only tested on Windows)

$ python textris.py

Python version: Python 3.6 or higher
No additional packages/requirements needed!

Controls

  • D: move right
  • A: move left+
  • S: "soft" drop
  • W: hard drop
  • Right Arrow: rotate right
  • Left Arrow: rotate left
  • Space: hold piece

Score saving

Scores are saved in a custom file named scores located in the shell's current work directory. To disable score saving and loading, change the SAVESCORE variable in textris.py.

SAVESCORES = False

Media

Menu Gameplay Scores

About

A text-based, colorful tetris implementation in python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages