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.
Yes, thank you
Your code passes the tests now, I'm going to assume that you solved it and mark this as resolved.
Language: Java
I passed the sampleTest(), but the ATTEMPT gives me the following error message:
expected: <Player 2 has won the game!> but was: <Player 1 has missed the ball!>
I don't understand why this happens, since the winning condition is evaluated first, followed by the conditions for hitting or missing the ball.