ContentsIndex
Eval
Description
The Eval module provides functions to evaluate the historical actions that occurred during each turn of a Game. The actions are evaluated in the context of a GameState, which represents everything we know about the the current state of a game. The GameState tracks both robots and packages in detail.
Synopsis
evalGame :: Game -> [GameState]
evalTurn :: GameState -> GameTurn -> GameState
Documentation
evalGame :: Game -> [GameState]
Evaluates every turn in the game to yield a complete turn-by-turn analysis.
evalTurn :: GameState -> GameTurn -> GameState
Evaluates the server updates for a turn in the context of the given GameState to yield a new GameState that represents the state of the game after the turn has ended.
Produced by Haddock version 0.4