factor/extra/tetris
Slava Pestov 4bab2ba807 tetris.gl: update for iota 2010-01-15 07:15:33 +13:00
..
board Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
game remove system-millis and update vocabs to use system-micros or nano-count 2009-11-18 20:56:09 -06:00
gl tetris.gl: update for iota 2010-01-15 07:15:33 +13:00
piece nip most uses of tuck from extra 2009-11-05 22:22:21 -06:00
tetromino Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05: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 Factor source files should not be executable 2009-11-21 17:50:43 -06: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 don't allow moving the tetris blocks when game is paused, display paused in the status bar 2009-11-30 17:51:29 -06: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