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.
done
You're right I should clarify that if the current player's whole row is empty, then it should only skip his turn but the move is not skipped. (of course if both players whole row is empty, then end the game)
Also, if the current player's move points to an empty hole, but its whole row is not empty, then it will skip that move but not the players turn.
I'll update the description and reference solution, thank you
Following that rule, all remaining moves would be skipped if the player's row was empty, because there are no valid moves.
Maybe so, or maybe the description is not very clear about this part. From the example, I read this rule that a move should be ignored in such case, but the player stays the same.
The reference solution in Python does not follow this rule, which can lead to unexpected failures in the random tests for solutions that do follow the rule.
Here's one such input:
done
could you add the tag though ..
I'll take note of this and would change the title if I ever start making a follow up. I could also do something like Sungka I, Sungka II
thank you
thank you
Done
done
I suggest to add these edge cases tests in sample/fixed tests:
move = [5, 5, 1, 3, 1, 4, 2, 7, 7, 2, 3, 4, 3, 2, 7, 2, 1, 5, 2, 2, 3, 2, 3, 6, 4, 3, 5, 5, 4, 3, 6, 4, 4, 4, 3, 2, 2, 2, 4, 5, 6, 3, 1, 5, 2, 6, 6, 5, 2, 7, 5, 7, 4, 5, 4, 1, 2, 5, 5, 4, 5, 3, 5, 2, 6, 4, 2, 4, 3, 4]
move = [5, 1, 6, 1, 7, 1, 2, 4, 4, 5, 3, 6, 6, 4, 5, 6, 7, 2, 3, 4, 5, 7, 1, 2, 7, 5, 3, 3, 7, 1, 1, 4, 6, 3, 2, 2, 6, 7, 1, 1, 2, 7, 7, 6, 5, 2, 5, 6]
move = [7, 3, 3, 2, 4, 1, 1, 4, 3, 7, 5, 1, 2, 5, 4, 7, 1, 6, 2, 7, 2, 3, 7]
Should add
simulation
tag. If you're still considering developing a follow-up kata that involves actually playing Sungka against a bot, it would be advisable to modify the current kata's title to something more descriptive like "Sungka Simulation" to better reflect the potential future implementation and scope of the challenge.Requires an update of Python framework.
Loading more items...