# void EndGame(int, bool)

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
void EndGame(int, bool)
```

## Description

Converts a one-based player input to a zero-based index and delegates its address with the lose flag to the game virtual method.

## Parameters and return type

**Return type:** `void`

| Position | Type |
| --- | --- |
| 1 | `int` |
| 2 | `bool` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`void EndGame(int, bool, str)`](/imperivm/en/CKS/reference/api-174480113ca21c/)

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-09a50e36e90ac6.md)
- [JSON](/imperivm/CKS/api/entries/api-09a50e36e90ac6?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
