Toto with up to six columns (Modern)

Each column costs the stake (10,000-400,000) and is settled on its own
with the original quotas; all columns stake 400,000 at most, every
column beyond the first adds a 10 % fee, no two columns alike. Column 1
stays on the original coupon; columns 2-6 and the last settlement live
in ModernState::pools and are saved. Session action
dispatch_pools_columns, read query {kind: "toto"}, unit test
modern_toto_tests, SIM_TOTO=<columns> in the season sim.

Measured over two seasons: 1 column returns 30-71 %, 6 columns 12-49 %
of the stakes; more columns win more often, never on average.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-24 11:06:57 +02:00
1 parent 4639fe5a91
commit 0aa0ed68ca
14 files changed
+357 -10

No files matched your search

+5
View File
@@ -601,6 +601,11 @@ public:
}
bool stadium_tip_deadline_expired() const;
bool dispatch_toto(const ui::TotoRequest&, uint64_t& revision, std::string& error);
// Modern Toto with up to six columns for the manager at the desk (docs/new_engine/toto.md).
// Errors: too_many_columns, stake_out_of_range, total_stake_too_high, duplicate_column,
// toto_coupon_requires_eleven_matches, invalid_toto_coupon, stale_manager_or_revision.
bool dispatch_pools_columns(int manager, uint32_t stake, const std::vector<std::array<uint8_t, 11>>& columns,
uint64_t& revision, std::string& error);
bool dispatch_tactics(const ui::TacticsRequest&, uint64_t& revision, std::string& error);
bool dispatch_lineup(const ui::LineupRequest&, uint64_t& revision, std::string& error);
// Source PitchScreen live-match path: apply one user-picked field/bench