# The Headquarters

The headquarters (aka 'HQ'), is the heart of the farm. Without an HQ, the farm is just a field with some well-dressed animals roaming around.

When attacking, the headquarters will be the building that determines if the attack is successful, by destroying it.

To advance a player's farm to the next stage, a player will first have to upgrade his HQ, and only then will he be able to upgrade the rest of his farm facilities, warriors, and weapons.

Make sure your defense is strong enough to protect your HQ if you don't want to say bye to your FW coins.

**Each farm can only have one HQ at all times.**


---

# 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://docs.thefarmwars.com/chapter-4-buildings-and-facilities/the-headquarters.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.
