Skip to content

surrenderWhen beta ​

Function of @v12-engine/engine/ai

ts
export declare function surrenderWhen(condition: AiCondition, options?: {
    id?: string;
}): AiModuleDef;

When the condition holds, the computer gives up: the engine's surrender command, as a player's, once. Out of the game as if beaten