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.
Just put [0]s in front of the returns. Worked like a charm.
Please specify to return one valid move instead of a list of them.
This comment is hidden because it contains spoiler information about the solution
JS
Test.expect
should be scrutinized tomocha
+chai
frameworkDescription should be language-agnostic
Should also mention that we need to return a valid move, and a winning move if possible (with concrete examples) Currently the setup can easily mislead solvers to return a list of available moves if no winning move is possible
Description must contain a rule about a boards where any move will be fail.
Wasted so many attempts to know that function must return any free point (not -1, null, false or undefined).
I must return index of the move right 0-8 || -1? Then why it shows some kind of error...
Can someone explain how it works?
I also assumed we had to make the "best" move possible. The description isn't all that clear about what is required.
fun kata. I just don't understand why it is 6kyu and the other - simple result-checker kata - is 5 kyu. I think this kata looks a step further. It is fine for a 6kyu just I find the other one simpler. nvm
Hi!
Written tests allows to push partial kata solution
just look at my terrible solutions, wich passed the tests.
suggest add this case:
Oh, right, it's already a winning board.
I'e changed the random tests so it only generates non-winning boards.
There's a problem with the random tests. In almost all cases, there will be at least one test with no solution. A couple examples I've encountered below:
Oops, forgot to check reply type ;-)
Just lol'd.
Approved
Loading more items...