tristanstraub/tetris — pull request #1 by technocake (2013-03-29 03:35:07+00:00)
Title: Added optional up-key for rotate and colors to pieces

I loved it!

But found it hard to use space as rotation key (just a personal preference), so I added the up-key as an optional rotate key (Space still works :) ).

Also, I wanted more colors, so I added individual colors per piece with a piece.type index.
piece.type = 0 --> class is set0 , and so forth.

It was really fun to hack your code :). Structured and neat.