# Game End

The game ends when all the characters from one team have their [HP](/gameplay/core-mechanics.md#hp-mp-and-stats) reduced to 0. At the end of a game, you can receive 3 types of rewards:

* [XP](/gameplay/core-mechanics.md#xp-leveling-up-and-sp) to level-up your characters
* Items
* [Gold](/gameplay/core-mechanics.md#gold)

This is the screen that appears at the end of a game to indicate the outcome and the various rewards.&#x20;

<figure><img src="/files/VFLA7hDk8tFkhilFN3s5" alt=""><figcaption></figcaption></figure>

1. Your outcome: victory or defeat
2. Total [XP](/gameplay/core-mechanics.md#xp-leveling-up-and-sp) earned
3. Gold earned
4. Grade (see below)
5. XP rewards per character and potential level-ups
6. Gold, item rewards and keys you earned (click/tap on a chest to see its content)

### Combat grade

Add the end of each game, you get a letter grade for your performance. The possible grades are the following, from best to worst:

* S+
* S
* A
* B
* C
* D

Your grade has an influence on how much XP and gold you earn after a game. The exact formulas leading to your grade are secret and it is for you to experiment to learn how to get the best grades, but the general idea is that the more efficient a killing machine your team is, the higher the grade!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.play-legion.io/gameplay/game-end.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
