factor/extra/tetris
Doug Coleman 9f213f96f6 core: Add the shuffler words but without primitives.
The nipd branch slowed bootstrap by a minute, this patch does not.

sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
..
board core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ; 2017-06-02 11:57:05 -05:00
game Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
gl core: Add the shuffler words but without primitives. 2018-06-19 22:52:58 -05:00
piece syntax: removing #! as a comment character. 2015-09-09 18:28:08 -07:00
tetromino core, basis, extra: Remove DOS line endings from files. 2015-06-29 17:25:40 -07:00
README.txt Fixed tetris and moved it from unmaintained to extra 2008-10-02 11:12:46 +10:00
authors.txt Fixed tetris and moved it from unmaintained to extra 2008-10-02 11:12:46 +10:00
deploy.factor tools.deploy.backend: ui depends on (full) io so it needs to be loaded first 2014-07-03 21:57:07 +00:00
summary.txt Fixed tetris and moved it from unmaintained to extra 2008-10-02 11:12:46 +10:00
tags.txt Fixed tetris and moved it from unmaintained to extra 2008-10-02 11:12:46 +10:00
tetris.factor core, basis, extra: Remove DOS line endings from files. 2015-06-29 17:25:40 -07:00

README.txt

This is a simple tetris game. To play, open factor (in GUI mode), and run:

"tetris" run

This should open a new window with a running tetris game. The commands are:

left, right arrows: move the current piece left or right
up arrow:           rotate the piece clockwise
down arrow:         lower the piece one row
space bar:          drop the piece
p:                  pause/unpause
n:                  start a new game

TODO:
- rotation of pieces when they're on the far right of the board
- make blocks prettier
- possibly make piece inherit from tetromino