Hacker News new | ask | show | jobs
by bowmessage 599 days ago
That’s… what the article says.
2 comments

That’s not what the article says. The last paragraph:

  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…

You do not know how the game was implemented to assume that.
To be fair to parent I read the whole thing and also missed that.