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.
This kata turns out to be a duplicate of https://www.codewars.com/kata/56fd0d6445040066b4001e04
Problems with the preloaded stuff:
Chess
class should be calledPiece
x
andy
refer to, how they're oriented, and what values they can assumeChess
class is missing thecolor
attribute (maybe it's intended to be this way by the author?)legalPos
should return a list of positions, not just one position (I hope this is a mistake in the description, and you're not actually returning 1 item)legalPos
comesArrow.direction
... must be capitalized" - are you suggesting we're the ones who have to set the arrow pieces' directions? How does this make sense if we're (presumably) validating the board? Also, "capitalized" means that only the first letter is in uppercase, not the whole wordBoard.putChess
expects as its second argument, or why this method's provided to us in the first placeI've found this forum thread explaining how PYRGA works presumably written by the game creator, and the rules listed there are different from what you're saying here. If you're adapting the rules for the purposes of a kata, you should be more clear about it, as now it looks like the description is simply wrong.
There's a link in the description that doesn't lead anywhere.
What does this mean? This statement can be interpreted in at least 2 different ways:
This doesn't really explain what the task is. Are we supposed to check whether a sequence of moves which results in a given board exists? Or is it something else?