FairPlay beta
Interface of @v12-engine/engine/testing
ts
export interface FairPlayWhether a computer player played fair over a run (fairPlay): every command it sent named what its own snapshot had, and how many the game refused
Members
assert
ts
assert(): void;Throws where it sent any command about what it did not see
refused
ts
readonly refused: number;Commands the game refused while watched (a unit that could not do it, a place it could not build at)
stop
ts
stop(): void;Stops watching the brain; the violations found so far stay
unfair
ts
readonly unfair: readonly AiViolation[];Commands that named an entity it did not see, or a place off the map