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.
It would be nice to show the white pawn’s direction in your examples, maybe something like:
The direction wasn't completely clear from the description.
Needs better variation (or just more) random tests. Suboptimal solutions can pass from time to time. I passed a couple of times with an incomplete "pawn" formula. I think it's best to mix pure random tests, with randomised tests generated from templates.
But in the examples in the description, P is moving up. This is mighty confusing.
clarified the description to have the direction the white pawn is moving in the array example
Good suggestion, implemented it.
Aren't ranks described in the description example array? Maybe something like
Rank 1 (white)andRank 8 (black)would make it clearer?basically: you should clarify that the P pawn is moving "down", considering the input board (visually, in the array shown in the description)
What do you mean, "from blacks perspective"?
board[0]is the first rank (with the white king),board[1]the second (with white pawns), etc.?It should be specified more clearly that the board is being provided from blacks perspective.
Make empty squares spaces rather than empty strings for ease of translation into languages which have a dedicated
chartype (all of these that I know disallow the empty character).This will also make the formatting much nicer on the test cases and description for free.
done
fixed
Yeah copy paste error, fixed now.
My bad. I completely missed that fact in the description.
Loading more items...