haverer-0.3.0.0: Implementation of the rules of Love Letter

Safe HaskellNone
LanguageHaskell2010

Haverer.Testing

Synopsis

Documentation

inRoundEvent :: Gen (Result PlayerId) Source

Generate an event that might come up in the course of play.

playTurn' :: (Ord a, Show a) => Round a -> Card -> Play a -> (Result a, Round a) Source

For a Round and a known-good Card and Play, play the cards and return the round and event. If the hand busts out, Card and Play are ignored.

randomRound :: Gen (Round PlayerId) Source

Generate a random round that might come up in the course of play.

randomRounds :: Gen [Round PlayerId] Source

Generate a random number of consecutive rounds, starting from an initial round.

shuffled :: [a] -> Gen [a] Source

Take a list and generate a shuffled version of it.