End the game in either victory or defeat. |
The game rules (rules.js) determine when a game is over and call this function accordingly.
Warzone 3.1 Beta 1 and above.
var returnValue = gameOverMessage(won); |
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
won | Boolean | Has the player won the game?
| 3.1 Beta 1 |
Value | Type | Description | Game version |
---|---|---|---|
undefined | Undefined | The function does not return a value. | 3.1 Beta 1 |
See the checkEndConditions function in rules.js.