five-on-it / packages/ai/src/nail-strips / stripSystem
Function: stripSystem()
stripSystem(
sim,book,graph,players,room?):void
Defined in: packages/ai/src/nail-strips.ts:180
One tick of the strips: those whose player is gone, below the stars that throw them (three, police-ladder.ts), past them or long gone by are reeled in, picked up once in, and their units go once nobody is near; then a strip is laid ahead of each player at those stars who drives fast enough, when it is time, none of theirs is out and the room has the two actors (a car, an officer) to spare (room, police.ts' cap).
Parameters
sim
book
graph
players
ReadonlyMap<number, number>
room?
() => number
Returns
void