councilforeconed / interactive-activities

Council for Economic Education
http://interactives.councilforeconed.org
Mozilla Public License 2.0
6 stars 2 forks source link

Pizza Prod: Defer marking players as "ready" #136

Closed jugglinmike closed 9 years ago

jugglinmike commented 9 years ago

Introduce a new boolean attribute for players named isReady. Initialize this attribute to false, and set to true when the player dismisses the modal dialog containing the game instructions.

Update the server logic to wait for the requisite number of players to be "ready" as defined above (instead of simply being present).

This change ensures that games do not begin until all players have had an opportunity to read the instructions.

This resolves gh-130.