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.
Array
doesn't need any references andContains
is fromSystem.Linq
there are methods Array and Contains
done
"in a row" means "aligned", here.
That's how tic-tac-toe works in 2-D.
Description says:
Four of the same symbols in a row wins
Why no information that 4 symbols in a diagonal is also a win?
From the description:
why
What about [2, 2, 3, 4, 5, 6, 7] array?
Going to work with the tests, but if game score is bigger than 9 it is going to break.
Still a good solution.
No answer after 2 months, closing.
Normal soluton: https://www.codewars.com/kata/reviews/5543abb64e405654510001d6/groups/628fa9c041bdea0001bee974
This comment is hidden because it contains spoiler information about the solution
Good idea, but why not use Math.Abs(number) to remove
-
Also actually there is no point in using a list here.
This comment is hidden because it contains spoiler information about the solution
Loading more items...