Creates a new game simulator.
Simulates until the current drive is complete.
Mutates the game in place and returns the updated GameContext.
home - The home teamaway - The away teamcontext - The current game contextgame - The game log (mutated in place)rng - The random number generatorSimulates the rest of the game.
Mutates the game in place and returns the updated GameContext.
home - The home teamaway - The away teamcontext - The current game contextgame - The game log (mutated in place)rng - The random number generatorSimulates the next play.
Mutates the game in place and returns the updated GameContext.
Call game.getLatestPlay() to inspect the play that was simulated.
home - The home teamaway - The away teamcontext - The current game contextgame - The game log (mutated in place)rng - The random number generator
A WASM-friendly wrapper around the core
GameSimulatortype.Provides methods to simulate plays, drives, or full games. Mirrors the Rust
GameSimulatorAPI, accepting teams, context, and a mutable game reference as parameters.