Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 443 Bytes

is-game-over.md

File metadata and controls

25 lines (17 loc) · 443 Bytes

is Game Over

Find out if the game is over or not.

game.isGameOver()

Returns

  • a boolean value that is true if the game is over or false if not.

Example

Be kind and give the player some points for trying.

if (game.isGameOver() && game.score() < 10) {
    game.addScore(10 - game.score())
}

See also

is running, is paused