diff options
Diffstat (limited to 'Player.hs')
-rw-r--r-- | Player.hs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,9 +13,9 @@ data Player = Player { name :: String shed :: Player -> Card -> Player shed (Player n p cs) c = Player n p $ L.delete c cs --- | Same player after drawing card specified. -draw :: Player -> Card -> Player -draw (Player n p cs) c = Player n p $ L.sort (c:cs) +-- | Same player after drawing cards specified. +draw :: Player -> [Card] -> Player +draw (Player n p cs) cs' = Player n p $ L.sort (cs' ++ cs) -- | Show player's cards, e.g. "1. Spade 2" showCards :: Player -> String |