My Matlab just loves its PopCap games. Here it is playing Plants vs. Zombies and the poor buggers don't stand a chance.
It splits up every lane into eighteen segments and looks if a zombie tie is there. If so, whack him good. It also locates coins by the same mechanism but the top lane needs a bit of fine tuning.
the final wave is very impressive :D
junkri 2 weeks ago