simulate
Function of @v12-engine/engine/testing
ts
export declare function simulate(simulation: Simulation | string | URL, options: SimulateOptions): Promise<SimulatedGame[]>;Plays games of a simulation, one from each seed, and gives what each ended in, in the order of the seeds. Given as it is, they are played in this thread. Given as the address of a file (a module whose default, or simulation, is one: a Simulation), each worker thread imports it and plays its share: in Node, from the built packages (a worker loads JavaScript, not the TypeScript of this repository)