Invincible Tic-Tac-Toe Algorithm
The Invincible Tic Tac Toe Algorithm
X plays first
Computer vs. Computer



I created the majority of this algorithm when I was about 12 years old. I filled pages of my notebook with tic-tac-toe boards trying to figure out all of the conditions to play the game perfectly. With the help of my mom, I programmed it in Java. I found that old code years later and re-implemented it into this program. The algorithm does not use any type of minimax or search algorithm. It simply uses predetermined conditions to play a perfect game. Enjoy.