This is amazing ( *O*) +2
+1 , sandwichlizard you make so munch cool thing ! your my favorite user .
I wrote a brute-force algorithm for solving Tic-Tac-Toe once, then analyzed the totals for all the different ways of winning, losing, and tieing (sp?). Roughly half of all end games are where X wins, 30%ish are O wins, and the rest are ties.
i made 117 wins 19 ties and 58 loses
top right, bottom left, bottom middle
Just an idea... What would happen if you put two of these AIs up against eachother? That could be interesting.
with me first, I won 4 times, loast 1. with AI first I lost 2 times, had 3 ties
try playing 10 games and then report on your win/loss/tie ratio.
It does logic in this order. 1-Check to see if blue wins. 2-check for red two in a row, if yes finish line and win. 3-check for blue two in a row, if yes block. else random pick unused square.
I bet this game on the first try