Skip to content

surrender beta ​

Function of @v12-engine/engine

ts
export declare function surrender(world: World, player: PlayerId): void;

A player gives up: out of the game as if beaten, once the game's beforeSurrender lets them. The rest of their side plays on; a side with nobody left loses, as the game's own way to win says (lastTeamStanding counts one who gave up as one who was in the game)