We can use pure HTTP request as finite state machine and implement some logic in pure webserver - http://blog.beef.de/2008/01/16/html-game/ http://blog.codetastrophe.com/2009/03/tic-tac-toe-game-for-kindle.html