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 comment is hidden because it contains spoiler information about the solution
I think it is still right
except for
? false : true
I guess?Really best practices and clever code!
Never mind, this doesnt affect the solution, as long as you can decide who go first then it's all ok
I don't quite understand the rule
"You cannot copy your opponent's previous move, likewise they cannot copy yours. If your opponent takes one cake, next move you can only choose between two or three. If you take three cakes, your opponent can only choose one or two. This doesn't effect the first move, only to subsequent."
for example, i move first with 2, then can enemy move 2? b/c "This doesn't effect the first move, only to subsequent"
So you cannot copy after first move of anyone or first move of both?
Best Practice!!! Thank you so much, I only know about chunk when i read your code