View Source FiveHundred.Bid (Five Hundred v0.1.0)
Models a bid for a conventional game. Consists of a name, suit, tricks, and points.
Link to this section Summary
Link to this section Types
@type special_bid() :: %FiveHundred.Bid{ name: String.t(), points: 250 | 500 | 1000, suit: :no_trumps, tricks: 10 }
@type t() :: %FiveHundred.Bid{ name: String.t(), points: 40..1000, suit: FiveHundred.Card.suit(), tricks: integer() }
Link to this section Functions
@spec bids() :: [t()]
bids/0 returns a list of available bids.
Tricks | Spades | Clubs | Diamonds | Hearts | No Trumps |
---|---|---|---|---|---|
6 tricks | 40 | 60 | 80 | 100 | 120 |
7 tricks | 140 | 160 | 180 | 200 | 220 |
8 tricks | 240 | 260 | 280 | 300 | 320 |
9 tricks | 340 | 360 | 380 | 400 | 420 |
10 tricks | 440 | 460 | 480 | 500 | 520 |
Misere | 250 | ||||
Open Misere | 500 | ||||
Blind Misere | 1000 |
Compares two bids by points.