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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
ohhh. cool
yes Log
input: knight = 1 pawn = 7138274664000306176
expected:<Black, -4170194745708939264> but was:<White, 0>
Nice problem! Sample tests very thorough.
Let me know if you are interested in having it translated.
I love this one !
It is good Kata! Thank you!
I would suggest the "Notes" section be "Rules." Notes are usually supplementary. Although, you do have a nice diagram anyways.
When testing Java, the input arguments are larger than stated in the conditions.
pawn = 7220222102556628992
expected distance = -4006299868596293632
Declared in the assignment.
P / p (Ruby) horizontal position of two pawns (between 2 and 1000000).
Java: expected solutions for the distance in the "huge_random_tests" overflow the
long
range and wrap around:knight = 1
pawn = 7220222102556628992
expected distance = -4006299868596293632
It seems there is mistake in expected results for values (1,5) should be ("White", 9) not ("White", 10) because ...
Test for (1, 5): i = 4; Final_Pos = 1 + 24 = 5 + 4 = 9
Fix please, or explain what is wrong in my algorithm...
Approved!
COBOL translation.
Thank you!
It might seem hard at first, but the description is good and the test cases are really helpful. Well done!
Loading more items...