I found a link to Play Pacman with Selenium 2 blog post at Watir General Google group and I decided to try it with Watir.

The best score so far is 3150, but the best score recorded is 2280. Dave says he got to 2660 with Selenium.

The source is on github.com/zeljkofilipin/pacman. Feel free to fork.