Curently the user is not aware if he is alone on the game page.
Neither does he now against who he is playing.
Implement a "join" AJAX call that will register the player with a nickname.
Actually, this should be a Comet callback, so that it waits until the other player joins.
Playing shouldn't be allowed until both pladoesn't allow the game to start yers join the game (disabled controls).
When both of the players are "in" the game, inform them about their nicknames and allow for the game to begin.
Curently the user is not aware if he is alone on the game page. Neither does he now against who he is playing.
Implement a "join" AJAX call that will register the player with a nickname. Actually, this should be a Comet callback, so that it waits until the other player joins. Playing shouldn't be allowed until both pladoesn't allow the game to start yers join the game (disabled controls).
When both of the players are "in" the game, inform them about their nicknames and allow for the game to begin.