Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Oct 20:11
· 1 commit to main since this release

Changed

  • Breaking: odds::compute is now Odds::compute. Same arguments, same
    result; a call odds::compute(…) becomes Odds::compute(…) with
    use bowery::odds::Odds;. The module's private helpers moved onto Odds
    and OutsBar as well, so src/odds.rs has no free functions. These
    renames are why this release is 0.3.0, not 0.2.1.

  • Breaking: frame::format_chips is now Frame::format_chips. Same
    argument, same text. frame.rs's private helpers (occupied, status,
    faces, last_action, street_name, caption) moved onto Frame too.

  • Breaking (wasm feature): element::problems_json and
    element::version are now element::Table::problems_json and
    element::Table::version.
    Same results. The JavaScript surface does not
    change: BoweryTable.version() and the JSON a bad config returns are as
    before.

  • Breaking: the rest of the public free functions moved onto types. Same
    arguments, same results:

    Was Now
    check::check(&config) check::Checked::new(&config)
    draw::svg(frame, layout, width, theme) draw::Renderer::svg(frame, layout, width, theme)
    draw::geometry::plan(…) draw::geometry::Plan::new(…)
    draw::geometry::outs_per_row(width) draw::geometry::Plan::outs_per_row(width)
    draw::geometry::strip_lines(folded, width) draw::geometry::Plan::strip_lines(folded, width)
    bowery::version() bowery::Bowery::version()

    Renderer and Bowery are new unit structs. Every private helper sits on
    its type too (Checked, Game, Plan, Renderer), and every test file's
    helpers on a test-only Fixture, so the crate has no free functions apart
    from main in the example. Nothing downstream calls the old names: bower
    does not depend on bowery yet, and the JavaScript surface is unchanged.

  • Odds percents now treat a folded seat's known cards as dead. pkcore
    0.18.0 added EquityRequest::dead (pkcore EPIC-123); bowery passes each
    folded seat's known hole cards through it, so they can no longer come back
    as a runout card for a live seat's win percent. Percents move slightly
    (closer to correct) wherever a seat has folded with known cards: at The
    Hand's turn Negreanu reads 3%, not 2%.

  • The outs bar asks pkcore to leave folded cards out. pkcore 0.19.0
    added Game::with_dead (pkcore DEFECT_042), so the river enumeration no
    longer deals a card a folded seat holds. bowery passes those cards in and
    no longer removes them from the result by hand. The bar's cards are the
    same as before.

    • pkcore bumped to 0.20.0.