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.
Approved
JS:
chai.config.threshold = 0
should be added to display the assertion messages properlyRandom tests do not test for negative numbers / moving distance (despite being tested in sample and fixed tests)
Approved by someone, now the ranking looks correct ~~
Really cool idea. This is an example of something I understood intuitevly from playing tons of table top games, but never thought about mathematically.
Julia translation
There is a board in the description, but the tests require to do something with 3 points. Can we have some examples in the description with how you get
5
starting from these points[(2, 2, 0), (1, 2, 0)]
and how this calculation process actually works?Edit: Okey, so I understood what I have to do after playing for a while with the points, but for me is still not very clear why you added
10
as a possible value in the description.Approved the kata!
Here is a Javascript Translation for you :)
Nice kata!
Whoops, forgot to add them. 50 random tests now.
Thanks for the suggestion, I tweaked the test cases so the examples just contain a test or two from each of the unique sections. Also added a couple more submit tests just because.
No random tests (importing random module is not enough, there should be real tests).
Example tests could really do with tests of paths longer than two points, like the submit tests have. They're something of a surprise now, and there should not be surprises in submit tests.