Commit graph

22 commits

Author SHA1 Message Date
Sam Tay
ec72607827 Use vBox, hBox over foldr 2017-06-17 16:02:27 -04:00
Sam Tay
80102d5a4a Derp city over here 2017-06-17 16:01:51 -04:00
Sam Tay
c49028a04c Derp 2017-06-17 11:15:52 -04:00
Sam Tay
344b4f8063 Allow starting pieces to be in bounds 2017-06-17 11:05:58 -04:00
Sam Tay
8ec499a0a9 Stop elements in row 1 2017-06-17 11:05:40 -04:00
Sam Tay
d7fa0ffd9d Better argument order 2017-06-17 11:05:30 -04:00
Sam Tay
c12bef50b3 Finish level picker, start game interface 2017-06-17 02:55:21 -04:00
Sam Tay
315f486520 Allow level == 0 2017-06-17 02:54:52 -04:00
Sam Tay
8e1c949a69 Rename blockCoords -> coords 2017-06-17 02:54:40 -04:00
Sam Tay
39bad552af More portable block definitions 2017-06-17 02:54:15 -04:00
Sam Tay
4ad60ae573 Add TODOs for later 2017-06-17 02:53:59 -04:00
Sam Tay
5a1116c6a3 Stub out some of the interface 2017-06-15 23:39:07 -04:00
Sam Tay
4de0c3d8d3 Rename currBlock -> block 2017-06-15 23:38:41 -04:00
Sam Tay
7bea4fc3be Finish pretty much all game mechanics 2017-06-15 23:20:10 -04:00
Sam Tay
0a20f0a5ff Implement safe rotations 2017-06-15 20:50:35 -04:00
Sam Tay
d5f9c5146b Implement valid position checking and improve nextShape 2017-06-15 11:33:09 -04:00
Sam Tay
a098278778 Remove unnecessary notion of "cell" value 2017-06-14 23:10:08 -04:00
Sam Tay
a7efdaba5c Map out funcs and types for shifting & rotating 2017-06-14 22:59:39 -04:00
Sam Tay
6c1627c481 Move single-use functions into "where" clause 2017-06-14 22:58:51 -04:00
Sam Tay
0bf364ec12 Implement clearing full rows 2017-06-14 22:25:32 -04:00
Sam Tay
1633c4a9c7 Build out more game mechanics
Typical tetris randomizer, bring in `containers`, swap to absolute cell
locations, write game initializer.
2017-06-14 00:28:45 -04:00
Sam Tay
7cdf59d5aa First commit, some basic Tetris types 2017-06-12 23:47:31 -04:00