Unbeatable Tic Tac Toe

I think I’m finished…should be bug free and unbeatable. Feedback is welcome!

https://hbontz.github.io/ticTacToe/

Unbeatable because it cheats!
This is what happened

I choose X and start the game ( I’m going to use this grid notation
012
345
678
)

  • Me: 6 - Cpu: 4
  • Me: 5 - CPU: 0
  • Me: 8 - CPU: 7 and 2

:scream:

1 Like

Ha, so unbeatable…right? Thank you for finding the bug and showing me how it happened. I’ll fix it!

Computers always cheats :smiley: