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.
I think if you think about this one more, you can do it this way. But I feel like it was so far to type I might as well just write out all the combos I can think of.
What does this mean?
How do we know who made an error? If someone does not have a legal move, can they make an "invalid" illegal move? Or is the turn flipped and the other made the error? And what if both players don't have a next legal move, and there still is a move in the input, who made the error?
well, it depends how you interpret the description I guess. The description should either:
I watched a quick guide of the rules. For instance, the statement below is incorrect. You can't flip any pieces in between, you can only flip from the piece you place to your first own piece.
For instance
All these ARE explained. Not spoon fed, ok, but the info are present.
I can't imagine how bad the description was before. It's still a bad description. You don't explain how we should interpret the input. You don't explain how a valid moves looks like.
fixed for python.
There's so much in Python you'd have to disable to make this minimally difficult...
Ah okay, thanks! I was going to fork the PHP translation for this raised issue, but decided to ask this first :)
Fixed.
Generics cannot take primitives so
Optional<boolean>
is not a thing andOptional<Boolean>
is just well like aBoolean
in the first place.Changed to
null
like said in description.Answered your own question didn't you? It's technically very much possible.
Running randomised full tests would have been better tho; author's other kata does that.
Scala translation
Java possesses
Option
in its stdlib iirc.This comment is hidden because it contains spoiler information about the solution
Loading more items...