HCard-0.0: A library for implementing a Deck of Cards

Safe Haskell | None

Data.HCard.Examples

Description

Author : Joe Fredette License : BSD3 Copyright : Joe Fredette

Maintainer : Joe Fredette jfredett.at.gmail.dot.com Stability : Unstable Portability : portable

# Documentation

score :: [Char] -> Int Source

cribbageScore :: Classic -> ClassicHand -> Int Source

toValue :: Classic -> Int Source

countFifteens :: CardT Suit Index -> Hand Suit Index -> Int Source

countPairs :: Card s a => CardT s a -> Hand s a -> Int Source

countRuns :: CardT Suit Index -> Hand Suit Index -> Int Source

countFlush :: CardT Suit Index -> Hand Suit Index -> Int Source

countHeels :: (Num a1, Card a Index) => CardT a Index -> Hand a Index -> a1Source

isRun :: (Eq a, Num a) => [a] -> Bool Source

hand1 :: ClassicHand Source

hand2 :: ClassicHand Source

cut :: Classic Source

filterSuits :: ClassicHand -> [ClassicHand]Source

allKTups :: [a] -> [[a]]Source

uniqPairs :: Eq a => [a] -> [(a, a)]Source