I've been on a roll with my Tetris development the past few days. Of late, I've implemented "pause" and "fast fall" (or "fast drop"). I've also added the ability to build a "mound". While working on the code to make the mound (the collection of pieces that pile up on top of each other), I found it helpful to dump the contents of my "grid" to a file. Here's my grid after playing the game for a few minutes. Clearly I now have to work on "clearing the rows" next!
- ..........
- ...##.....
- ...##.....
- ..........
- ...mm....m
- mmmmmmmmmm
- mmmmmmmmmm
- mmmmmmmmmm
- mmmmmmmmmm
- mmmmmmmmmm
- mmmmmmmmmm
- mmmmmmmmmm
- mmmmmmmmmm
- mmmmmmmmmm
- mmmmmmmmmm
- mmmmm.m.mm
- mmmmmmmmmm
- mmmm..m.mm
- mmmmmmmmmm
- mmmm...mmm
- .mmm..mmmm
- mmmm.mmmm.