game-theory-core 0.1.0

Exact game-theoretic solvers. No I/O, no async, no protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Hard size limits. Exceeding one is an error naming the limit and the
//! actual value — the crate never truncates a game and answers anyway.

pub const MAX_PLAYERS: usize = 8;
pub const MAX_STRATEGIES_PER_PLAYER: usize = 20;
pub const MAX_PROFILES: usize = 100_000;
pub const MAX_MIXED_STRATEGIES_PER_PLAYER: usize = 12;
pub const MAX_TREE_NODES: usize = 10_000;

/// Above this many surviving opponent profiles, the mixed-dominance LP is not
/// run — one constraint per profile makes the program impractically large.
/// `DominanceResult::mixed_dominance_checked` reports when this happened; the
/// crate never silently downgrades an answer.
pub const MAX_MIXED_DOMINANCE_PROFILES: usize = 4_096;