Repository navigation
Changed
-
Breaking:
odds::computeis nowOdds::compute. Same arguments, same
result; a callodds::compute(…)becomesOdds::compute(…)with
use bowery::odds::Odds;. The module's private helpers moved ontoOdds
andOutsBaras well, sosrc/odds.rshas no free functions. These
renames are why this release is0.3.0, not0.2.1. -
Breaking:
frame::format_chipsis nowFrame::format_chips. Same
argument, same text.frame.rs's private helpers (occupied,status,
faces,last_action,street_name,caption) moved ontoFrametoo. -
Breaking (
wasmfeature):element::problems_jsonand
element::versionare nowelement::Table::problems_jsonand
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()RendererandBoweryare new unit structs. Every private helper sits on
its type too (Checked,Game,Plan,Renderer), and every test file's
helpers on a test-onlyFixture, so the crate has no free functions apart
frommainin 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.0addedEquityRequest::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
addedGame::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.pkcorebumped to0.20.0.