1. A tangible computer-readable medium, comprising instructions for causing one or more processors in an electronic device to perform a method of generating code for a game server from a markup language schema for a human computation web-based game, the method comprising the steps of: a. analyzing a markup language schema that includes a game states element that describes the states and synchronization points of a multi-player game and that specifies a game state machine, the game state machine including a set of game states that each correspond to a union of all players' states and to a set of events that causes transitions between game states, the game states machine being usable to synchronize players' actions; and b. generating code from the analyzed markup language schema.