MagicAjax Tic-Tac-Toe


Here, MagicAjax is utilized for a tic-tac-toe game. The 'state-of-the-art-AI-code' that calculates the next move runs on the server. The AjaxCalls are 'Synchronous' so that the browser will wait for the response before allowing the user to make a new selection.

If javascript is disabled at the browser, the page will revert to plain PostBacks automatically, without even a need for a 'Refresh' . During the game, disable/enable javascript and you'll see that the game continues without any problems.