SimulateOptions beta
Interface of @v12-engine/engine/testing
ts
export interface SimulateOptionsHow simulate plays its games
Members
onGame
ts
onGame?: (game: SimulatedGame) => void;Told of each game as it ends, in the order they end
seeds
ts
seeds: number[];The seeds to play from, a game each
workers
ts
workers?: number;Worker threads to play them in at once, where the simulation is given as a file: as many as the machine has cores less one, when left out. In this thread, one after the other, for a simulation given as it is