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.
Hi,
Very nice one. But imo, it presents one logical flaw and lacks some important edge cases. ;) (coming from ruby)
The flaw:
[0][0]
if the board is[[]]
, so it's out of bounds.Needed tests:
Various invalid starting cases:
Edge cases:
board = [[{color: :blue, star: true}]], robot = {x: 0, y: 0, direction: :right}
:right
(in a valid case)The description could need some cleaning/reorganization too. Mostly, the way it's currently broken down isn't pretty/easy to follow: you have subparts for conditions, stack, ..., but you forgot to put clearly those for the robot, the board and the program. Btw, the instruction part shouldn't be there, since it's actually about the program itself, so should be included in this section instead.
Would be great to add all of this. :)
Cheers
Edit: what about those random tests? (or at least "randomized"?)
I know this game, and I once wanted to transplant it to CW.
Say something to your kata:
The input data is not intuitive, and there is no random test. (though it is difficult to implement, but please work hard ;-))