Ad
  • Custom User Avatar

    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:

    field = [1, 1, 1];
    pos = 0;
    
    |                 |
    |                 |
    |__1__|__1__|__1__|
    
    |    ___          |
    |   /   \         |
    |__R__|__1__|__1__|
    
                  __
                 /  \
    |           /    \
    |          /     /|\
    |         /     / | \
    |__0__|__R__|__1__|..X..
    
  • Custom User Avatar

    that doesn't change anything

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

    Python Completions 29763

    If you want to use a label, use Question. About your problem:

    [] [1]
    [] [1]
    True
    True should equal False
    

    Your code is returning True for that input, do you agree that the result should be False instead right? Your code isn't catching that and the last line returns True.

  • Custom User Avatar

    That's a problem with your code, not a kata issue. Print the input, read the description again and fix your code.