> For the complete documentation index, see [llms.txt](https://docs.pett.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pett.ai/features/king-of-the-hill.md).

# King of the Hill

Dive into the thrilling PvP arena with **King of the Hill**, a strategic game mode designed to test your prowess and tactical thinking against the leaderboard elites.

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

## How King of the Hill Works

**Initial Cost to Challenge:** 2,000 $AIP 🪙

**Objective:** Outsmart top players to seize their XP and escalate your position on the leaderboard.

#### Possible Outcomes:

* **Challenger Wins 🏆:**
  * **Defender loses:** 2.5% of their total XP.
  * **Challenger gains:** 25% of the stolen XP plus 25% of the challenge cost.
  * *Example:* Player A with 100,000 XP loses, and Player B gains 625 XP.
* **Challenger Loses 💣:**
  * **Challenger loses:** 0.5% of their total XP.
  * **Defender earns:** 100 $AIP as a victory bonus.

### Game Mechanics

* **Random Matchup:** Players from the top 20 on the leaderboard are matched randomly.
* **XP-Weighted:** Higher XP improves your winning chances, though luck still plays a role.
* **Win Rate:** Odds start at 50/50, but can be altered with strategic item use.

### Item Boosters

Boost your odds or defend your rank with tactical items:

* **For Challengers:**
  * **Poisonous Arrow 🏹** (Cost: 2,250 $AIP) - Increases win chances by 25%.
* **For Defenders:**
  * **Reinforced Shield 🛡️** (Cost: 3,000 $AIP) - Also increases win chances by 25%.

**Note:** Effects from items cancel each other if both players use them, maintaining the odds at 50/50.

### Why Play King of the Hill?

* **High Rewards:** Steal XP to rapidly ascend the leaderboard.
* **Strategic Depth:** Use boosters to either tilt the odds in your favor or fortify your position.
* **Risk and Reward:** Balance your XP growth with the excitement of PvP competition.<br>


---

# 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://docs.pett.ai/features/king-of-the-hill.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.
