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.
Now you can get a bonus point if you solve the sequel as well. Thank you for the good idea :)
I am curious to see your code when it was not passing to understand why. Would you like to share it? You could help me make this kata better.
I am not sure about what makes your solution wrong, probably something related to the Notes section, with all the rules to respect. Anyway the fork posted by Kacarott has been approved and the error messages should give you a better idea of what the problem is. Let me know if you still can't figure out what is wrong.
It is not easy from the tests understand why your solution is wrong. Now, the error messages should be more helpful. They will always tell you if the prisoners made an assertion too early or if they didn't make any. Anyway, if you read that message it means that your solution is probably not respecting some of the conditions in the Notes section. Let me know if you still have problems finding out what is wrong.
I found it on Mathematical Puzzles: A Connoisseur's Collection, by P. Winkler. I don't know if he is the author of the riddle.
I forked from yours to change the last message to
The prisoners waited too long to make an assertion. (This might be caused by using state)
, then approved the forked version. Thanks for the help.Story -> I replaced "equally at random" with just "at random"
Task -> I replaced "test" with "game" and gave it a definition, and specified that the function will be called until assertion is true for a maximum number of times
Output -> It is now specified that the function returns a tuple (or an array)
Notes -> I made clearer that the function cannot have and does not need a state
I also read everything again and found a few spelling / grammar errors, just let me know if I missed any.
Thank you for the help.
I rewrote the Notes section to make it clearer.
I fixed the issue, now solutions like yours fail. Thank you for your help.
The anti-cheating is working.
Keep try cheating please :)
.
Ta?
I added that line on both the example tests and the submit tests. Thank you for your help.
.
.
Loading more items...