Array doesn't need any references and Contains is from System.Linq
Array
Contains
System.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?
Four of the same symbols in a row wins
From the description:
The numbers will also all be unique and in ascending order.
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.
-
Loading collection data...
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...