Stepwise Approach for all TODOs:
- Find Main.java and make sure you've set the runner to the TODO you're working on; we're going to play "Show & Tell" here.
- Find the TODO.java file where you'll write your code and read the comments at the top of the file header
- Notice your TODO.java file starts with just an empty class definition; this empty class also serves as a solution you can run & test.
- With just the empty file (and any methods you've written commented out), run the main() method in Main.java to play the solution.
- You can experiment with the game solution to see how the game should behave and what the goals are for the current TODO
- Toggle the solution's behaviour (on and off) by commenting out and uncommenting the method you're working on
- Observe the correct solution: If you comment out your method, then the solution will become active and you can experiment with how the game should behave once you're finished
- Declare your own solution: By defining the right method inside your TODO class (and leaving it empty), this will turn off (or replace) the working solution and "turn on" your empty method, so nothing will happen when all blocks are destroyed
- Repeat steps A and B: This is a process of showing the solution and then trying to recreate it by telling the game how to accomplish what you were shown in code; check out what the solution does, and then try to get your code to mimic the behaviour to successfully complete each TODO.