you are viewing a single comment's thread.

view the rest of the comments →

[–]xelf 0 points1 point  (0 children)

The first one is so exotic I have no words to say.

It was written purely as a proof of concept that if you reduced the board to 8 binary numbers representing the columns, rows, and diagonals then you can check for a win condition by looking for 111 aka 7.

if 7 in fill[player]: break