Download Latest Version Release v0.1.6 source code.zip (282.8 kB)
Email in envelope

Get an email when there's a new version of tetris

Home / 0.1.2
Name Modified Size InfoDownloads / Week
Parent folder
tetris-Darwin-x86_64 2017-07-03 23.9 MB
tetris-Linux-x86_64 2017-07-03 14.4 MB
Improve CLI options and features.tar.gz 2017-07-03 277.6 kB
Improve CLI options and features.zip 2017-07-03 279.7 kB
README.md 2017-07-03 1.2 kB
Totals: 5 Items   38.8 MB 0

Added legitimate CLI options:

tetris - the iconic game right in your terminal

Usage: tetris ([-a|--ascii-only] | [-p|--preview-chars CHARS])
              [-l|--level LEVEL] [--high-score]

Available options:
  -h,--help                Show this help text
  -a,--ascii-only          Use '[]' as hard drop preview cell instead of '◤◢'
  -p,--preview-chars CHARS Custom two character preview cell
  -l,--level LEVEL         Specify level (unspecified results in prompt)
  --high-score             Print high score and exit

The main purpose of this release was to help people with terminals that don't handle my choice of unicode characters very well. This way a simple -a flag will sub in [] as a preview, or custom characters can be used as well. This prompted a nice-to-have -l level option so you can skip the first prompt.

And I got around to saving high score. Not a complete leaderboard with name entry, just a single highest score is saved for the user playing Tetris, so you can get a pat on the back when you break a new record.

And I moved from tuples to Linear.V2 since that's the proper datatype when dealing with points in space.

Source: README.md, updated 2017-07-03