> For the complete documentation index, see [llms.txt](https://defi-wars.gitbook.io/wp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://defi-wars.gitbook.io/wp/gameplay/how-does-defi-wars-work.md).

# How does DEFI WARS work?

The main game process is to fight against enemy players. It is necessary to destroy the enemy towers and castles. But it is necessary not to forget about your own towers and castles, which must defend doughtily against attacks from the enemies.

#### Each player has 3 towers:

1. The King's Castle.
2. The Princess Tower 1.&#x20;
3. The Princess Tower 2.

![](/files/IsdBSrm8xh5HW56aXGFJ)        <img src="/files/gpmNdo6dpjJFLf4Xpw8x" alt="" data-size="original">

The winner is determined by the results of the battle, during which it is necessary to collect the largest number of **crowns (3)** faster than the opponent. A player receives **one crown** for **destroying one princess tower!**

* With the complete destruction of the main castle of the enemy, the victory is automatically credited to the one who did it first.

All 3 objects (for each of the players) are endowed with some characteristics; N-th level of life (HP), attack on the enemy, attack range and attack speed.

The Princess Tower has less health than the Main Castle, but a higher level of ranged attacks and higher attack speed.

* The Castles of Kings are in an inactive state, but as soon as the enemy makes damage to them or destroys one of the two Princess Towers, the Main Castle is activated and is able to strike back.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://defi-wars.gitbook.io/wp/gameplay/how-does-defi-wars-work.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
