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.
hey! :)
ähm. For the future, if you whant to post your solution (no matter right or wrong), please use "Mark as having spoiler content".
Relatively to your question, I think the main problem is to understand the position of the rabbit in cell. I hope following example shows bouncing more clear:
that doesn't change anything
hey! the height of the jump doesn't really matter
I just have bad ASKII art skills :D sry.
Main thing is the position change - I just dunno how to draw it correctly.
Read this: https://docs.codewars.com/training/troubleshooting#post-discourse And don't create kata issues (that's a problem in the kata itself) when the problem is in your code.
If you want to use a label, use
Question
. About your problem:Your code is returning
True
for that input, do you agree that the result should beFalse
instead right? Your code isn't catching that and the last line returnsTrue
.That's a problem with your code, not a kata issue. Print the input, read the description again and fix your code.