winner-calc
v1.0.1arrow_drop_downArray<Array.<string>>
,number
,number
,number
,number
,number
string
check winner horizontal, vertical and diagonal
Array<Array.<string>>
2d array with X and O
number
number of rows
number
number of columns
number
the number of matching to win
number
the row number of the square player click
number
the column number of the square player click
string
return the winner, X or O or '' if no one win.
Winner check function should return draw | Pass |
Winner check function should return no winner | Pass |
Winner check function should return winner in horizontal first row | Pass |
Winner check function should return winner in horizontal second row | Pass |
Winner check function should return winner in horizontal third row | Pass |
Winner check function should return winner in vertical fisrt row | Pass |
Winner check function should return winner in vertical second row | Pass |
Winner check function should return winner in vertical third row | Pass |
Winner check function should return winner in diagonal bottom right - top left | Pass |
Winner check function should return winner in diagonal bottom left - top right | Pass |
Winner check function should return winner in diagonal | Pass |