Someone used this pattern to make a very simple 'bot' with autohotkey, it is used here: http://www.youtube.com/watch?v=-aiXCnpXBfc
That game is event based, not frame based, so it is possible to put down multiple pieces in one frame.
Here is the same bot on a frame based game: http://www.youtube.com/watch?v=H1y_m1W-go8