Skip to content

lanesBrainOf beta ​

Function of @v12-engine/engine/ai

ts
export declare function lanesBrainOf(def: BrainExtension & {
    id: string;
    lanes?: LanesPlayOptions;
}): BrainDef;

The engine's computer player for a game of lanes (lanesPack): a brain of its rules, the words, lanesPlay, the team, the picker, squads and micro (the file's comment). Heroes walk the lanes with their waves, rest at home when hurt, help an ally's hero, take a camp with no wave to walk with. A variant is lanesBrain.with({ ... }); a game's own lanes brain is lanesBrainOf({ id, lanes, ... })