> For the complete documentation index, see [llms.txt](https://liquidx.gitbook.io/pixelpals-documentation-season-0/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liquidx.gitbook.io/pixelpals-documentation-season-0/duel-coming-soon/game-rules.md).

# Game Rules

### Core Gameplay&#x20;

1. Once a match is found, each user faces one another on the board with a starting HP of 100.&#x20;
2. Five cards are randomly drawn from each user’s deck and placed face-down
3. Round 1 begins&#x20;
   * The first card is flipped for both users.
   * HP of each pet is recalibrated based on the cards drawn (attack, defense, special ability)
   * User who has initiated the Duel can select one of the following options
     1. Check
        * Proceed to opening the next card
     2. Fold
        * Walk away by losing only half of the current wager
     3. Double
        * Double the current wager
        * If doubling the wager will exceed the max wager tolerance set by the opponent, the game will proceed as a check&#x20;
   * Users will have 10 seconds to act upon each round; failure to do so will result in a check
4. Iterates until round 5
   * Note that the game will end before round 5 if either the user or opponent health reaches 0 before reaching the last round

### Results

When the match is complete, users will be able to either gain or lose Pet Points only to the amount that they have wagered. For example, if a user has wagered 100 Pet Points in the game, the maximum win or loss from the game is capped at 100 Pet Points.&#x20;

### Card Play Considerations&#x20;

The opponent always makes the first move when it comes to card vs. card play.&#x20;

* Attack vs. attack
  * Remove HP from each player respectively
* Attack vs. defend
  * If |attack| > |defend|, remove net value of HP
  * If |attack| < |defend|, no removal of HP
* Defend vs. defend
  * No removal of HP
* Special ability vs. attack/defend
  * Play sequentially (opponent first, then user)
* Special ability vs. special ability
  * Play sequentially (opponent first, then user)


---

# 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://liquidx.gitbook.io/pixelpals-documentation-season-0/duel-coming-soon/game-rules.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.
