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.
I like the katana, but i missed some information for the "rules of scoring". I'm not familiar with tennis sport itself, but thanks to the katana i searched for some more information about counting in tennis. Maybe it would be nice to enhance the rules with:
A fourth point win by a player decides the game for him if the player then has a lead of at least two points, i.e. after the scores 40:0, 40:15 and 40:30 (or vice versa). If the score is 40:40, it is called a deuce. The following point is called an advantage.
I would like to do this, is there a way I can import the completed kata solution? That way I could feed the random list into that and compare it with the user solution output.
Oh right I see, that situation should be in the tests now
I meant that there should be tests with one of the players having an extra deuce point, not
40 - 40
...Good idea, I have added one of those.
There're no tests where the game is in a deuce state after the whole array has been processed.
Thanks, resolved.
Sample tests are not using
it
blocks.That should be resolved now
That should all be implemented now.
Thanks for the feedback. I will be adding that as soon as possible, that would definately make the kata more interesting
Deuce rules are not tested.
The output type should be
dict[str, tuple[int, int]]
.No random tests.
Tests are not using
it
blocks.