Skip to content

brainOf beta ​

Function of @v12-engine/engine/testing

ts
export declare function brainOf(world: World, player: PlayerId): Brain | undefined;

The brain that plays a player, where one is seated (world.computers.seat): none where nobody is, or where what is seated is not a brain (defineComputer)