Crate dds_bridge
source ·Expand description
This crate aims to be the building block of computer bridge in Rust.
This crate links to dds-bridge/dds, the fundamental C++ double
dummy solver, via our system crate.
Structs§
- A call that proposes a contract
- A snapshot of a board
- A playing card
- The statement of the pair winning the bidding that they will take at least the number of tricks (in addition to the book of 6 tricks), and the strain denotes the trump suit.
- A deal of four hands
- Solved plays for a board
- A hand of playing cards
- A set of cards of the same suit
- Par score and contracts
- A play and its consequences
- A set of seats
- Flags for the solver to solve for a strain
- Error raised when converting
Strain::Notrumpto a suit - Tricks that each seat can take as declarer for a strain
- Tricks that each seat can take as declarer for all strains
- Vulnerability of pairs
Enums§
- Any legal announcement in the bidding stage
- The sum type of all solver errors
- Penalty inflicted on a contract
- Position at the table
- Denomination, a suit or notrump
- A suit of playing cards
- Errors that occurred in
dds_bridge_sys - Target tricks and number of solutions to find
Traits§
- A bitset whose size is known at compile time
Functions§
- Calculate par score and contracts for a deal
- Calculate par scores for both pairs
- Solve a single board with
sys::SolveBoard - Solve boards with a single call of
sys::SolveAllBoardsBin - Solve boards in parallel
- Solve a single deal with
sys::CalcDDtable - Solve deals with a single call of
sys::CalcAllTables - Solve deals in parallel for given strains