Artificial Intelligence For Dummies

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…

2 comments

  1. Emmanuel Emmanuel says:

    Hey, what’s up i am trying to learn AI on my own u know i’m from Africa have not seen any materials on it wud be cool if u cud dump me some.

  2. Dan Q Dan Q says:

    Not sure what I can suggest. I haven’t studied AI for years. Good luck!

Reply here

Your email address will not be published. Required fields are marked *

Reply by email

I'd love to hear what you think. Send an email to b226@danq.me; be sure to let me know if you're happy for your comment to appear on the Web!