When I saw Google’s recent
interactive Pacman doodle to celebrate the
game’s 30th anniversary, my first thought was ‘Wouldn’t it be cool to automate
playing Pacman using Selenium’. I know - I’m a geek!
Anyway, below is my quick proof of concept using Selenium 2 alpha 4 - the
latest version of Selenium 2 is available for download
Try it out for yourselves, and I extend these challenges to you:
Specify a distance for Pacman to travel rather than using an arbitrary pause
Detect if Pacman dies in his quest to eat all the pills
Work out the score at the end of the game
All of the above should be achievable… let me know how you get on. Also let me
know what high scores you achieve playing Pacman with Selenium 2!