The game library supports simple single-player time-based games. The player has a number of **lives** and a **score**. The game has a number of **levels** and a **countdown clock**. The general goal of a game will be to achieve a top score before time runs out or the number of lives goes to zero.
## Touch Develop
The code below shows a simple game where the user gets to press the button ``A`` as much times as possible in 10 seconds.
If the `life` reaches zero or the time expires (see countdown), the game enters the **game over** mode. When the game is over, `game->is running` returns false
* check if the game still running.
```
export function isRunning() : boolean
```
Indicates if the game is display the game over sequence.
```
export function isGameOver() : boolean
```
You can also end the game by calling the `game -> game over` function:
```
export function gameOver()
```
### Score
When a player achieves a goal, you can increase the game score