caustik’s blog

gnireenigne

Archive for April 8th, 2009

Game playing AI bot

with 20 comments

Every once in a while a silly idea grips you and you decide “Screw it, I’m going to do it”.

That happened with me with a game called Bejeweled Blitz on Facebook. My friends online have been competing for high score for the past few weeks. I got to thinking…”How hard would it be to write a program to automate playing this game..?”.

This is the result of that question. It took a few days at a few hours per day. Probably about 6 hours combined time. Right now the bot is able to play pretty well. It can do better than I can most the time (although my high score currently beats the bot’s high score). With some improvements, I expect that will dramatically change.

Anyway, here’s a video of the program in action.

Update:

The autoblitz bot just scored 258,400.

http://i42.tinypic.com/1zmi2yp.jpg

Written by caustik

April 8, 2009 at 5:04 pm

Posted in Games, Hacking

Tagged with ,