# turnbase > Headless, deterministic turn-based game engine core **Version:** 0.0.0 **Authors:** Matan Lurey **License:** MIT OR Apache-2.0 **Repository:** https://github.com/crates-lurey-io/turnbase **Keywords:** game-engine, turn-based, deterministic, gamedev, ai Generated: 2026-07-25 17:03:15 UTC Created by: [cargo-llms-txt](https://github.com/masinc/cargo-llms-txt) ## Core Documentation - [Complete API Documentation](llms-full.txt): Full public API documentation with detailed descriptions - [README](README.md): Project overview and getting started guide - [Cargo.toml](Cargo.toml): Project configuration and dependencies ## Table of Contents ### src/player.rs - pub struct PlayerId - impl PlayerId - impl core::fmt::Display for PlayerId ### src/error.rs - pub enum Error - impl core::fmt::Display for Error - impl std::error::Error for Error ### src/chance.rs - pub fn sample_chance - impl Game for tests::Weighted ### src/game.rs - pub trait Game - pub trait Reversible - pub trait Determinize - impl Game for tests::RollGame - impl Reversible for tests::RollGame ### src/lib.rs - pub use active::ActivePlayers - pub use chance::sample_chance - pub use effects::{EffectSystem, MAX_EFFECTS, resolve_effects} - pub use error::Error - pub use game::{Determinize, Game, Reversible} - pub use pile::Pile - pub use player::PlayerId - pub use rng::Prng - pub use state::{PlayerView, State} ### src/active.rs - pub struct ActivePlayers - impl ActivePlayers - impl FromIterator for ActivePlayers - impl IntoIterator for Unknown ### src/effects.rs - pub trait EffectSystem - pub const MAX_EFFECTS - pub fn resolve_effects - impl EffectSystem for tests::Dominoes ### src/pile.rs - pub struct Pile - impl Pile - impl Pile - impl FromIterator for Pile - impl IntoIterator for Unknown ### src/state.rs - pub struct State - impl State - impl State - pub struct PlayerView ### src/rng.rs - pub struct Prng - impl Prng ### src/serde_roundtrip.rs - impl Game for Roll --- ## README.md ### turnbase Headless, deterministic turn-based game engine core Part of the [turnbase](https://github.com/crates-lurey-io/turnbase) workspace. ## Cargo.toml ```toml [package] name = "turnbase" version = "0.0.0" edition = "2024" description = "Headless, deterministic turn-based game engine core" license = "MIT OR Apache-2.0" repository = "https://github.com/crates-lurey-io/turnbase" keywords = ["game-engine","turn-based","deterministic","gamedev","ai"] categories = ["game-development","simulation"] authors = ["Matan Lurey "] ```