Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Never mind... Seems like the issue was in how I was calculating the number of times the ball was seen at the window.
Maybe I'm missing something... The example instructions say that the ball will bounce to 2/3 of its original height (or whatever
bounce
is set to in each test). Won't that mean that the ball will consistently decrease its height by the percentage thatbounce
is set to?If so, wouldn't that make either the instructions or some of the tests wrong?
With the latest test cases this code no longer works