To Do:
Note: If you're not reading this on GitHub, I use backticks to highlight code as opposed to English. In atom, code shows up green in this file.
-
There's a bug in
Block::copy_piecesthat we apparently missed from before. It intermittently causes a crash. I found it, fixed it, and then put it back in. Find it. Right now a test fails, and it will succeed when you fix it. HINT: why do you sometimes get garbage on the screen, and why is it intermittent? -
Commit and then push the fix.
-
Straighten out naming. Decide what the word "piece" and "block" mean, decide whether to rename
class Blocktoclass Piece, and, and make sure the file name matches the class name. Filename should be all lowercase, no spaces or underscores, and class name should be CapitalizedCamelCase. -
Make sure the unit tests still pass, then commit and then push the changes.
-
Uncomment lines 27, 37, and 122-153 of test.cpp; this uncomments a unit test that will fail.
-
Write the constructor of
GameGridand thecheckCollisionfunction ofBlock(orPiece, if you went withPiece). The constructor should just copy some data into a new member variable ofGameGridwhich you should probably calldata, and thecheckCollisionfunction we've already discussed. -
Make sure the unit tests pass. Commit and then push the fix.
-
What is the purpose of the word
friendin gamegrid.h?
- write code to handle collision for the right side and bottom checking for out of bounds cases