Skip to main content

Module turn

Module turn 

Source
Expand description

The rules of a turn-based game as the engine’s generic code sees them: a state that takes commands and answers with what happened. The game keeps its own turn loop, phases and rules, and implements TurnRules for its state; History (replay, rewind, saving a game in progress) is written against it.

Traits§

TurnRules
A turn-based game’s state, and the commands that change it.