Skip to content

five-on-it / packages/ai/src/police-negotiator / negotiate

Function: negotiate() ​

negotiate(ai, client, choice): boolean

Defined in: packages/ai/src/police-negotiator.ts:220

A player's answer to the call (see the module documentation): picking it up (the team holds for the talk), hanging up (it is over), more time (once) or a car (once). Returns whether it did anything.

Parameters ​

ai ​

AiWorld

client ​

number

choice ​

TalkChoice

Returns ​

boolean