watchComputer beta
Function of @v12-engine/engine/testing
ts
export declare function watchComputer(world: World, player: PlayerId, options?: WatchOptions): ComputerWatch;Follows the brain at a player from now on: after every think, the invariants of ai/checks.ts (a unit in one squad and one hold, gold spent once, finite numbers, commands about what it sees, no order sent again to a unit still at it, builders, tasks, holds and wants that end), with what it decided and sent. A broken rule is kept, not thrown, unless onViolation throws: assert at the end says them all