Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Game.Implement.Card
Documentation
class Card c => OrderedCard c o where Source #
Minimal complete definition
Methods
highestCardBy :: o -> [c] -> c Source #
lowestCardBy :: o -> [c] -> c Source #
compareCardBy :: o -> c -> c -> Ordering Source #
sortCardsBy :: o -> [c] -> [c] Source #
Instances
class OrderedCard c o => OrderedValuedCard c o vt where Source #
Minimal complete definition
Methods
toOrderedValue :: o -> vt -> c -> Int Source #
Instances