# Combat Phases

●      Defender strikes first then followed by the attacker. If the defender dies during the attacker's phase, the combat ends and the attacker is victorious.

●      For each character a strength value is calculated. This is based on the attack and defense values of their avatars.

Considering base hitpoint, attack and defense values of

| Variable  | Base Value | Max Value |
| --------- | ---------- | --------- |
| Attack    | 100        | 200       |
| Defense   | 100        | 200       |
| Hitpoints | 100        | 200       |

The expected hit to kills for different match-ups

| Match-up Calculator |              |                 |                 |
| ------------------- | ------------ | --------------- | --------------- |
| Att Strength        | Def Strength | Attacker Damage | Defender Damage |
| 10                  | 100          | 8.8047          | 63.2456         |
| 20                  | 100          | 9.6451          | 44.7214         |
| 40                  | 100          | 11.5741         | 31.6228         |
| 60                  | 100          | 13.8889         | 25.8199         |
| 80                  | 100          | 16.6667         | 22.3607         |
| 100                 | 100          | 20.0000         | 20.0000         |
| 120                 | 100          | 24.0000         | 18.2574         |
| 140                 | 100          | 28.8000         | 16.9031         |
| 160                 | 100          | 34.5600         | 15.8114         |


---

# 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://gainhive.gitbook.io/gainhive-whitepaper/gameplay/combat-system/combat-phases.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.
