Home

Awesome

bridge

Contract bridge utils.

Bid

Card

Deal

Trick

Score

You can create Score object passing 3 arguments:

Bridge::Score.new("6NTXN", "BOTH", "=")

Arguments:

Methods:

You can also ask for all possible contracts finished with given points:

Bridge::Score.with_points(980)
#=> ["1NTX+4v", "2C/DX+4v", "6H/S="]

Points

Chicago

You can calculate how many IMP points you won by:

Bridge::Points::Chicago.new(:hcp => 25, :points => 420, :vulnerable => false).imps

Arguments:

Copyright

Copyright (c) 2010 Jakub Kuźma. See LICENSE for details.