Skip to content

five-on-it / apps/server/src/seat-bots

apps/server/src/seat-bots ​

What a run's AI players (RunSeatSpec.bot, a lobby's stand-ins) are given by their room, read from the mission alone: their brain (botBrainOf: a co-op mission's crew; in versus a team with a catch objective chases, any other robs; a free-for-all races, as a robber whose places are its gates) and the places a robber goes to in turn (botGoalsOf: its team's objectives' places in the mission's order, a group's members each in turn, a deliver's items where they lie then where they go, a race's gates). The room spawns the bots and hands them to @foi/ai's seat bots (game-server.ts).

Functions ​