This document is a case study based on the Prisoner's Dilemna being modelized to prove the design concepts.
The steps for creating a turn-based game are :
Most of the time the development process iterates over those steps until the game is finished.
Because of the flexibility of the framework a change in the game design impacts minimal modification in both the modelization and its implementation.
The purpose of this case study is to modelize a basic game in order to show how it fits within the framework design concepts.
The first step is to list the data needed for this game.
The game state contains general information that needs to be kept from turn to turn :
Orders are sent from players to the moderator each turn to indicate whether they defect or they cooperate :
The next step is to detail the units required to have the game work the way expected.
The computation unit needed receives both players decisions and creates the result and the update :