Skip to content

GameAi beta ​

Interface of @v12-engine/engine/ai

ts
export interface GameAi

What a game says of its computer players' profiles (Rules.ai): difficulties and personalities of its own, and defaults over the engine's

Members ​

conditions ​

ts
conditions?: Record<string, AiConditionTest>;

Conditions of its own, by id, for the data form ({ is: 'mygame.bridgeDown', args }), a map's file among them

defaults ​

ts
defaults?: AiProfile;

Defaults over the engine's, under the difficulty

difficulties ​

ts
difficulties?: AiProfileTable;

Difficulties of its own, by name, beside (or over) the engine's

lobby ​

ts
lobby?: boolean;

Whether a lobby offers its seats a difficulty and a personality (seatSettingsOf): yes when left out

personalities ​

ts
personalities?: AiProfileTable;

Personalities of its own, by name

races ​

ts
races?: AiProfileTable;

How its computers play each of its races (Rules.races), by race id: a layer over defaults and under the difficulty, for a seat of that race (its build order, heroes, composition, flags; how often it thinks). Its difficulty and personality are the seat's where the lobby and the map say none