Bouncing Ball Exercises
-
There is a bug in the bouncing ball code. Test yourself that you really understand how the backing arrays work.
-
Adjust the width and height automatically
In this exercise, your goal is getting the width and height of the terminal screen from your operating system (instead of setting the width and height manually).
-
Let's optimize the program once more. This time you're going to optimize the clearing off the previous positions.
-
Use a single dimensional slice
For the board slice, instead of using a multi-dimensional slice, let's use a single-dimensional slice. In this exercise, you'll understand and deeply internalize why I've used a multi-dimensional board slice.
-
Don't use a slice for the board
Expand your horizon: Don't use a slice for the board. You only need a slice for the buffer, only that.