Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Monad m => MonadEngine m playerId where Source
badPlay :: BadAction playerId -> m () Source
choosePlay :: PlayerSet playerId -> playerId -> Card -> Card -> m (Card, Play playerId) Source
gameStarted :: Game playerId -> m () Source
gameOver :: Outcome playerId -> m () Source
roundStarted :: Game playerId -> Round playerId -> m () Source
roundOver :: Victory playerId -> m () Source
handStarted :: Round playerId -> m () Source
playGame :: (Ord playerId, Show playerId, MonadRandom m, MonadEngine m playerId) => PlayerSet playerId -> m (Outcome playerId) Source