councilforeconed / interactive-activities

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

Pizza Prod: Synchronize endgame report #159

Closed jugglinmike closed 8 years ago

jugglinmike commented 8 years ago

Ensure that last-minute changes to the game's state are reflected in the endgame report for all clients.

Extensions to the client-server protocol (e.g. a formal "endgame" message) could preclude the need for such dynamism, but that verification step would also introduce a delay between game completion and report rendering, decreasing perceived responsiveness.

Because the race condition under consideration is relatively rare, the (user-perceived) advantages of the dynamic approach outweigh the (largely technical) drawbacks of its less formal protocol.