Skip to content

AiCheckOptions beta ​

Interface of @v12-engine/engine/ai

ts
export interface AiCheckOptions

How a brain is checked (checkBrain, watchComputer)

Members ​

invariants ​

ts
invariants?: readonly AiInvariant[];

The invariants to check: all of them when left out

limits ​

ts
limits?: AiEndLimits;

How long a thing may go on before it counts as stuck (ends)

onViolation ​

ts
onViolation?: (violation: AiViolation) => void;

Told of each broken rule as it is found. Where none is given, checkBrain throws at the first