SimulatedGame beta
Interface of @v12-engine/engine/testing
ts
export interface SimulatedGameHow one game ended
Members
computers
ts
computers: Record<string, ComputerMeasures>;How each computer player played, by player: commands a minute, idle army seconds, churn, seconds blocked on money, commands refused
failed
ts
failed?: string;Why it stopped on an error of its rules, where it did (World.failure)
measured
ts
measured: Record<string, Counted>;What measure counted
seconds
ts
seconds: number;Seconds of the game it lasted, and ticks
seed
ts
seed: number;The seed the game was played with
ticks
ts
ticks: number;How many ticks the game lasted
took
ts
took: number;Milliseconds it took to play here
winner
ts
winner: number | null;The winning team, or null for none in the time given