Unbeatable Tic Tac Toe – Rule Based Algorithms

May 19, 2015

Continuing my work with Java, recently, I developed an unbeatable Tic Tac Toe game in Java.

Tic Tac Toe Tie Game

Tic Tac Toe Tie Game

While you can find many such programs online, I think that I’m the only person to create the kinds of algorithms I have.

Coming from a database background, I implemented a number of database like structures in memory. An array list of remaining cells. A Decision Table. And a lookup table for intersections of runs.

Here’s how I did it.

——-

Many Event Handlers:

Read the rest of this entry »

Advertisements

%d bloggers like this: