Skip to content

thinkOnce beta ​

Function of @v12-engine/engine/testing

ts
export declare function thinkOnce(world: World, player: PlayerId): AiReport;

Has the brain at a player think now, all of it (a think its budget slices over ticks is run to its end), over a new picture of the game, and gives its report: what a test reads after setting a scene. Its commands land at the next tick, as a think's do. A think the seat would have had is not skipped: this one is beside them