Artificial stupidity

Once again, we can end the project here. We now have a 2-player turn-based strategy game with a computer opponent. The human player can win and, with a little luck (and some rotten playing on the human's part), the computer player can win.

Try playing a few rounds of the worst Tic Tac Toe of your life. The computer player can win, but it's almost a challenge to play so badly that you lose to your artificially "intelligent" opponent.

Randomly choosing an empty Square isn't going to cut it. We need to make the computer opponent smarter. To do that, we have to sit down and study Tic Tac Toe until we understand what makes it ... ahem ... tick. We need to be experts at how to play, and win, Tic Tac Toe. The computer scientists who ...

Get Unity 4.x Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.