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.
Description also does not mention the coordinates given as well as the association between direction of movement and sign (+ / - ) of the coordinate.
Should be language-agnostic
As a side note for solvers, coordinates decrease upon moving above the Y-axis !
Dashatize it has good tests to learn from. Click on "Show Kata Test Cases" (I can't link straight to there) and read how he does it. That's the general pattern; you can build on that if necessary.
Generating good random inputs can be complicated, and there are some gotcha's, but those'll probably be pointed out as you go along.
There are no published documents that take you beyond the basics really. Read tests and comments on others' kata and learn what you can do wrong. Writing tests is an art as much as a craft, and not everybody is good at it, so don't take anything anybody else does as gospel.
And never ever use
Test.expect
! :PHello,
Thank you for your helpful feedback. I'm new to making kata's so I don't know how I can make random tests for the Dunkirk kata. Could you please point me in the right direction?
Kind regards,
Bart
Needs random tests.
Nice kata. Three suggestions:
[y,x]
. It can be deduced from the examples, but why make it a puzzle?