WatchOptions beta
Interface of @v12-engine/engine/testing
ts
export interface WatchOptions extends AiCheckOptionsHow a computer player is watched (watchComputer): which invariants and how long things may go on (AiCheckOptions), and what to be shown at each think
Members
observe
ts
observe?: (snapshot: Snapshot, brain: Brain) => void;Shown, at the end of each of its thinks, the game as an observer sees it (everything, no fog) and the brain: for a look at what it does (a test that writes frames, a page that draws them). An observer's seat is made only when given
sent
ts
sent?: (command: PlayerCommand, brain: Brain) => void;Each command as it sends it