Skip to main content

Module eval

Module eval 

Source
Expand description

Hand evaluation: HCP, shortness, Fifths, BUM-RAP, losing trick count, NLTC, and Zar points.

The HandEvaluator trait abstracts over any function that maps a Hand to a numeric score. The standard schemes (hcp, shortness, fifths, bumrap, ltc, nltc, zar, hcp_plus) operate on individual Holdings and are bundled into SimpleEvaluator constants (FIFTHS, BUMRAP, BUMRAP_PLUS, NLTC) that evaluate a full hand by summing per-suit results.

Structs§

SimpleEvaluator
Evaluator summing values of suit holdings

Constants§

BUMRAP
The BUM-RAP evaluator
BUMRAP_PLUS
BUM-RAP with shortness
FIFTHS
The Fifths evaluator for 3NT
NLTC
New Losing Trick Count

Traits§

HandEvaluator
Trait for hand evaluators

Functions§

bumrap
The BUM-RAP evaluator
fifths
The Fifths evaluator for 3NT
hcp
High card points
hcp_plus
High card points plus useful shortness
ltc
Plain old losing trick count
nltc
New Losing Trick Count
shortness
Short suit points
zar
Zar points, an evaluation by by Zar Petkov