This is a tangent, but checking if all the elements in the diagonal position are the same is not sufficient. You also need to check that any of the elements are not '-'.
if (cell[0][0] == cell[1][1] == cell[2][2]) {
return Winner
}
> Well the code is indeed correct . Well done, Python… for finding yet another way to confuse us all.The code is incorrect: if all entries are '-' there is no winner. Even ignoring the braces…