I’ve just written an artificial intelligence gamebot, designed to pseudointelligently play simple board games which involve a finite upper number of moves and a board of tokens – for example: Connect Four, Noughts & Crosses, Go!, or Othello. It uses the (appropriately-written) rules of the game in order to pre-anticipate a vast number of moves, and select the ‘best’ ones based on the likelihood of them winning. It’s not terribly powerful, but I’d never written such a widely-scoped A.I. before, and I fancied the challenge.
I let it out for it’s first run this afternoon, and started a game of Connect Four with it. Here are the results:
I took the first turn, and put one of my pieces into the first column of the grid.
The gamebot took the second turn, picked up an enormous handful of pieces, and put six of them into the grid (two in the first column and four in the next four adjacent columns). These four-in-a-row, of course, won it the game.
Perhaps I need to define ‘cheating’ for it. Hmm… back to the drawing board…