Module solver

Module solver 

Source
Expand description

Solver functions for double dummy problems

Structs§

Board
A snapshot of a board
FoundPlays
Solved plays for a board
Par
Par score and contracts
Play
A play and its consequences
StrainFlags
Flags for the solver to solve for a strain
TricksRow
Tricks that each seat can take as declarer for a strain
TricksTable
Tricks that each seat can take as declarer for all strains
Vulnerability
Vulnerability of pairs

Enums§

Error
The sum type of all solver errors
SystemError
Errors that occurred in dds_bridge_sys
Target
Target tricks and number of solutions to find

Functions§

calculate_par
Calculate par score and contracts for a deal
calculate_pars
Calculate par scores for both pairs
solve_board
Solve a single board with sys::SolveBoard
solve_board_segment
Solve boards with a single call of sys::SolveAllBoardsBin
solve_boards
Solve boards in parallel
solve_deal
Solve a single deal with sys::CalcDDtable
solve_deal_segment
Solve deals with a single call of sys::CalcAllTables
solve_deals
Solve deals in parallel for given strains