defineComputer beta
Function of @v12-engine/engine/ai
ts
export declare function defineComputer<C extends ComputerPlayer>(id: string, make: (session: LocalSession, context: BrainContext, options: AiOptions) => C): BrainDef;A computer player of the game's own that is not made of modules (a ComputerPlayer: anything that thinks), as a brain the game lists (Rules.brains) and seats as it does any (world.computers.seat(player, { brain })): found again by its id when a save is loaded. make is handed the seat's session, its context and what it was seated with, the map's under the seat's; it thinks as often as those say (every, 1 second when left out)