ContentsIndex
GameState
Description
The GameState module represents the present state of the game. We keep track of the everything we know about the robots and other items in play.
data GameState
Constructors
GS
gsRobots :: RobotKnowledge What we know about robots in the game.
gsPackages :: PackageKnowledge What we know about packages.
gsGame :: Game Game that this state describes
gsTurn :: Int Turn that this state describes
Instances
Show GameState
type RobotKnowledge = FiniteMap RobotID Robot
type PackageKnowledge = FiniteMap PackageID Package
data Robot
Constructors
Robot
rbtID :: RobotID
rbtLocation :: Point
rbtPackages :: [PackageID]
rbtMoney :: (Maybe Integer)
rbtScore :: (Maybe Int)
rbtAliveStart :: Bool At st. of turn
rbtAliveEnd :: Bool At end of turn
rbtBidAndCommand :: String
data Package
Constructors
Package
pkgID :: PackageID
pkgLocation :: (Maybe PackageLocation)
pkgDestination :: (Maybe Point)
pkgWeight :: (Maybe Weight)
data PackageLocation
Constructors
OnGround Point
OnRobot RobotID
Produced by Haddock version 0.4