Skip to content

Actors and Interactions

Alexander Kasper edited this page Mar 3, 2016 · 1 revision

Overview

In order to play the game as a programming challenge, the participating actors and their properties need to be defined.

Actors

Players

The straight forward actor is the player who is participating in the game. Each player has a current score and can take several actions during his turn:

  • Check the result of the previous players roll (optional)
  • Roll the dice
  • Check the result of the dice roll (optional)
  • Announce a result for the next player (needs to be higher than the previously announce result)

Host

In order to manage the game and the interaction between the players in an objective way, a game host is needed. The host rolls the dice for a player and compares dice roll results with announced results if required. The host also manages the scores by keeping track of current scores and evaluating penalties as deductions. Duties of the host include:

  • Ask player if he wants to check previous player's roll
  • Provide the result of a dice roll for a player
  • Keep track of the last dice roll
  • Request value announcement from player
  • Make sure announced value is higher than previously announced value (if previous value exists), penalize otherwise
  • Keep track of the announced value from a player
  • Compare announced value and actual dice roll if requested and penalize
  • Check if highest possible value is announced and force evaluation afterwards
  • Provide current score of players

Interactions

The interactions are implicitly mentioned already in the possible actions of the actors but shall be listed explicitly here to clarify communication between actors. As a mediator, all interaction between players is handled by the host, i.e. all interaction happens between host and player.

  • Host publishes the announced value
  • Host asks player if he wants to check the previous player's roll vs. his announcement
    • if yes, host publishes result of dice roll
  • Player can ask host for result of dice roll
  • Host asks player for announced value
Clone this wiki locally