About a week ago I posted an article about our tentative dipping of our toes into the world of AI. We were trying to write an application to train a neural network using a genetic algorithm to play four-in-a-row. We’ve done that now and the results are... well let’s just say we’re not ready to enter our network in any four-in-a-row competitions.
That’s not to say it hasn’t worked. Our network has definitely learnt the game and is playing to win. The trouble is that it doesn’t seem to play very defensively, especially in the opening moves of the game. If you let the game play beyond more than about a dozen counters on the board, then it seems to play defensively and, more often than not, it will win. In fact it will often force a position where, whatever move you play, it will win. But it’s definitely no expert.
We’re not finished yet. We have a few more things to try - and perhaps we just need to let the network evolve a little more. I don’t know when we’ll get the chance to do this but if we do, and if we have any more luck, then I’ll post an update.
