David
[ Biography ] [ Flash ] [ C/C++ ] [ Python ] [ C# ] [ Artwork ] [ Resume ] [ Contact ]

Tic-Tac-Toe, with four available levels of difficulty!
You really can't beat the unbeatable, you'll always tie/lose.



The AI algorithm was implemented with a minimax search.. For the other three difficulties (aside from Unbeatable), I just set the heuristic values to varying ranges, not entirely correct or perfect, to effectively 'randomize' the AI player's moves. For easy, the opponent is more or less selecting random spaces to move to, and for difficult, there are only two cases (one ignoring symmetry) where you, the human player, can be able to win. Feel free to give it a try (hopefully you don't think the UI is too ugly), see if you can win!

Unfortunately, as I forsaw little practical application regarding a tic-tac-toe game, I neglected to include any sound effects/music. So feel free to turn on your own.


Copyright © David Straily