http://bruxy.regnet.cz/web/linux/EN/housenka-bash-game/
Who says shell scripting has to be terribly painful? The code is actually quite readable. I especially like the use of the subshell to trigger SIGALRM, I would never have thought of that myself.
(Thanks to Hack A Day)
-Adam