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.
Good kata, it ranked me up to 4 kyu!!!
This is genius :). I definitly didn´t think about flattening the structure and test the positions string-wise. Would you have documented your intention a bit I would have tagged as Best Practice, for sure.
I only tagged as Clever because Genius doesn't exist ;).
what's going on here.. looks clever tho
Practically, don't think this will ever need to be scaled. It's tic tac toe. If possible future scaling isn't an issue, why even bother future proofing it?
fixed
fixed
missing test size spec in description, which is required to understand what problem needs to be solved
js tests need to be updated, missing random tests + other issues
As a new comer on Codewars, I wanted to try to translate some kata, and was inspired by this one...
So I've prepared a Python translation.
Anyone to check, comment and possibly approve ?
There should be no need to use decimals in this particular challenge, and floats should work. I tried to build the tests in the way to make them resistant to precision issues, and if you have such problems, then i believe its something not exactly right with your code.
I can double check if you post your code bere.
When using Python 3, is it recommended to use the decimal module? Is the floating-point precision so bad for doing its kata?
the initial code should be a class
This comment is hidden because it contains spoiler information about the solution
Random tests are basically non-existent, only 1. Also random test is setup as such
with a predefined prefix...(Solutions can easily hardcode such cases along fixed tests).....
@JohanWiltink grats on another "premature" approval !
Description also does not explain whether the match string will take the
\n
character into account or not. Initally I was thinking of cases like (abc\ndefc\nhu
,chu
)Loading more items...