License | MIT |
---|---|
Maintainer | Joe Leslie-Hurd <joe@gilith.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
Documentation
newtype PlayerState s Source #
PlayerState (s, s) |
getPlayerState :: PlayerState s -> Player -> s Source #
updatePlayerState :: (s -> (a, s)) -> PlayerState s -> Player -> (a, PlayerState s) Source #
nowOrNever :: Bool -> Event Source #
dfsWith :: Ord p => DfsPre p a v -> DfsPost p a v -> Val p v -> Player -> p -> (v, Val p v) Source #
forceWith :: Ord p => Game p -> Player -> (Player -> p -> Bool) -> Force p -> Player -> p -> (Event, Force p) Source #
gameMaxWith :: (Ord p, Ord v) => Game p -> Player -> (Player -> p -> v) -> Val p (Max v) -> Player -> p -> (Max v, Val p (Max v)) Source #
gameMax :: (Ord p, Ord v) => Game p -> Player -> (Player -> p -> v) -> Player -> p -> Val p (Max v) Source #
bestStudies :: Study p -> [(Player, p)] Source #