Skip to content

dealer3 v1.1.0

Latest

Choose a tag to compare

@Rick-Wilson Rick-Wilson released this 14 Sep 18:46
· 6 commits to main since this release
02a5bf8

dealer3 v1.1.0

A Rust implementation of dealer, the bridge hand generator, compatible with its script language and command line, and with the DealerV2_4 extensions.

Highlights

  • Double-dummy that is fast enough to use. tricks(), dds() and par() now go through bridge-solver, at around ten milliseconds a deal instead of minutes, and score() and imps() turn the answers into results.
  • Pre-solved deals. --input-deals reads Richard Pavlicek's library of 10,485,760 solved deals, so double-dummy questions are lookups. A library is read as the run goes, so a run can look through all ten million deals without holding them in memory, and -s picks where in the library to start.
  • Levelling. --level characterizes a scenario's HandType_ categories and deals an even mix (or the one HandType_X_Share asks for). --write-leveled writes the levelled scenario out, and LevelType_ levels on a decomposition of its own.
  • More of DealerV2_4's language. Script parameters ($0–$9, --param), François Dellacherie's shape{...} notation, printrpt, csvrpt with trix(...), printns, printside, two-dimensional frequency, decimal literals, and predeal on several seats.
  • Faster. Dealing is about 1.6× faster, generating a deal nearly 3×, and every run uses all cores (-R / --threads).
  • --stats-json, for tools that read a run's statistics.
  • In the browser. Everything here also runs at https://bridge-craftwork.com/dealer3/, with nothing to install, including the pre-solved library.

Breaking changes

  • A seed no longer reproduces dealer.exe's deals. --legacy and the ported GNU random() are gone; a seed reproduces a dealer3 run. The script language and command line are still dealer.exe's.
  • score()'s numeric contract code now follows the references' own encoding.

See docs/CHANGELOG.md for everything since 1.0.0.

Downloads

Pre-built binaries are attached below for Linux, Windows and macOS (Intel and Apple Silicon). The macOS builds are signed and notarized. Or use https://bridge-craftwork.com/download/dealer3, which picks the right one for your machine.