The AI in Action

Below are screenshots illustrating the AI in action.

1) I run the program, select the AI to play first, and respond to its first move.

image

2) The AI plays in the top left, forcing me to play in the middle left.

image

3) The end is nigh. The AI creates two threats at once. I stop one of them…

image

4) But I cannot stop both.

image

AI: 1, Humans: 0.

Comments

This program is highly inefficient. E.g it will search through every possible move, even if it has already found a winning sequence. My focus was on getting something working, rather than trying to optimise it.

Next steps

Code

The code for this is available on github.