turnbase/lib.rs
1//! Headless, deterministic core of the Turnbase engine.
2//!
3//! Async-free, UI-free, pure computation: state plus action to new state. See
4//! `ARCHITECTURE.md` at the workspace root for the design and its rationale.
5
6mod active;
7mod chance;
8mod effects;
9mod error;
10mod game;
11mod pile;
12mod player;
13mod rng;
14mod state;
15
16#[cfg(all(test, feature = "serde"))]
17mod serde_roundtrip;
18
19pub use active::ActivePlayers;
20pub use chance::sample_chance;
21pub use effects::{EffectSystem, MAX_EFFECTS, resolve_effects};
22pub use error::Error;
23pub use game::{Determinize, Game, Reversible};
24pub use pile::Pile;
25pub use player::PlayerId;
26pub use rng::Prng;
27pub use state::{PlayerView, State};