extensive-form 0.1.0

Extensive-form games with game trees, subgame perfect equilibrium, backward induction, and information sets
Documentation
  • Coverage
  • 96.25%
    77 out of 80 items documented0 out of 43 items with examples
  • Size
  • Source code size: 35.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • SuperInstance/extensive-form
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SuperInstance

extensive-form

A pure-Rust library for extensive-form games with zero external dependencies.

Features

  • Game trees — Build arbitrary game trees with decision nodes, chance nodes, and terminal nodes
  • Backward induction — Solve finite games via backward induction
  • Subgame perfect equilibrium (SPE) — Find SPE via rollback
  • Information sets — Model imperfect information with information sets
  • Sequential move analysis — Full support for multi-stage games

Modules

Module Description
tree Game tree construction and traversal
node Node types (decision, chance, terminal)
information Information sets for imperfect information
backward Backward induction solver
subgame Subgame perfect equilibrium

Quick Start

use extensive_form::tree::GameTree;
use extensive_form::node::{NodeData, NodeType};
use extensive_form::backward::backward_induction;

// Build a simple Ultimatum game tree
let mut tree = GameTree::new("Ultimatum");
// ... add nodes and solve via backward induction

License

MIT OR Apache-2.0