Skip to content

Releases: samtay/tetris

Release v0.1.6

20 Oct 03:05
v0.1.6
05ee7b3
Compare
Choose a tag to compare
Progressive leveling

Add toggle for drop preview

20 Jul 22:23
Compare
Choose a tag to compare

Added the CLI option -n|--no-preview to turn off the hard drop preview cells.

Add pause feature

28 Dec 00:58
Compare
Choose a tag to compare

The only functional change is adding a pause feature. Aside from that, I bumped up the Stack LTS to 13.0 (GHC 8.6.3) and refactored to a MonadState style for game computation.

Improve CLI options and features

03 Jul 05:03
Compare
Choose a tag to compare

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.

Fix hard drop

28 Jun 04:05
Compare
Choose a tag to compare

Disallow shifting after a hard dropped brick has landed.

Initial release

18 Jun 23:39
Compare
Choose a tag to compare

Basic functionality