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.
Genius!!! I'm ashamed of reading my code after seeing your solution!
Genius.
I want to know what does [3, 3, 0, 1][cakes % 4] means??
This comment is hidden because it contains spoiler information about the solution
Always use the spoiler flag when discussing code.
This comment is hidden because it contains spoiler information about the solution
Ah, I see it now. Thanks Blind4Basics for the explanation of the linear version and hard coding. They also just hardcode in the sum of the board for a draw XD.
that's called "hardcoding the results", aka "some kind of cheat"... x)EDIT: looks like so, at least... Lemme dig a bit more)
EDIT²: XD not even so, actually. That's hardcoding the winning possibilities, rather. The formatting gets weird because he uses a linear version of the grid.
May a python king please tell me WHAT THE F is going on here, please?
Interesting thought, but the kata states it's only a draw if nobody can make another move.
Can somebody explain what's going on in this solution please? I can't get it.
obviously the best solution
This comment is hidden because it contains spoiler information about the solution
This looks extremely un-understandable to me. Good job i guess!
This was written in Python 2.7.6 (way back when Codewars only supported Python 2.7.6), so try to be less rude when you're wrong. Or all the time, really. kthxbei
Loading more items...