defineBrain
Function of @v12-engine/engine/ai
ts
export declare function defineBrain(def: BrainDef): DefinedBrain;Defines a brain: what a computer player is made of, to seat at a world (world.computers.seat(player, { ...options, brain }), world.computers.seat) and to list in Rules.brains, for a save to find it by its id. Modules that keep state are given as functions of the brain, as systems are of the world