View Source FiveHundred.Card (Five Hundred v0.1.0)

Models a card from a standard 53 card deck

Link to this section Summary

Link to this section Types

@type rank() :: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15
@type suit() :: :no_trumps | :hearts | :diamonds | :clubs | :spades | :joker
@type t() :: %FiveHundred.Card{rank: rank(), suit: suit()}

Link to this section Functions

@spec joker() :: t()
@spec ranks() :: [rank()]
@spec suits() :: [suit()]
@spec to_string(suit()) :: String.t()
@spec traditional_suits() :: [suit()]