general-games-0.2.0: Library supporting simulation of a number of games

Safe HaskellSafe
LanguageHaskell2010

Game.Implement.Card

Documentation

class (Enum c, Eq c, Ord c, Bounded c) => Card c where Source #

Methods

fullDeck :: [c] Source #

dedupe :: [c] -> [c] Source #

draw :: [Int] -> [c] -> Maybe ([[c]], [c]) Source #

class Card c => ValuedCard c v where Source #

Minimal complete definition

toValue

Methods

toValue :: c -> v Source #

toValueLst :: [c] -> [v] Source #

class OrderedCard c o => OrderedValuedCard c o vt where Source #

Minimal complete definition

toOrderedValue

Methods

toOrderedValue :: o -> vt -> c -> Int Source #