> For the complete documentation index, see [llms.txt](https://ajneb97.gitbook.io/minechess/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajneb97.gitbook.io/minechess/faq.md).

# FAQ

## What movements does MineChess support?

All of chess movements, including:

* En passant
* Castling
* Pawn promotion

The game also block movements that would put you in checkmate.

## What possible game ends does MineChess has?

* By Time: If the arena max time is reached. The winner will be chosen depending on the [**Game Mode**](/minechess/arena-editing.md#arena-gamemode) selected for the arena.
* By Checkmate: If a player puts the opponent in checkmate.
* By Stalemate: If one of the players has no more possible movements but is not in check. This is considered a tie.
* By Player Leave: If one of the players leaves the arena.
* By Movements without progress (50-move rule): If a certain amount of movements is reached, meaning players are stuck, no captures or pawns moves have occurred in the last X movements. This is considered a tie.
* By Insufficient Material: If the remaining pieces on the board make it impossible for either player to deliver a checkmate. This is considered a tie. This occurs in specific cases such as king versus king, king and bishop versus king, king and knight versus king, or both sides having only a bishop on the same color.
* By Arena Disable: If the arena is disabled while in-game using the `/minechess disable <arena>` command.

## I want each player to have their own time in the arena. How can I do that?

Use `/minechess edit <arena>` and set the Game Mode to **PLAYER TIME**. Now you can set the maximum amount of time each player has.

{% hint style="warning" %}
MineChess+ exclusive feature.
{% endhint %}

## How to give random amount of money on rewards?

In the rewards section on the `config.yml` file, you can set many actions depending on the type of win. If you want to give winners 200 - 300 money when the game ends, you can use something like this:

```yaml
# Let's suppose you have EssentialsX and Vault.
# To use the random number variable you need PlaceholderAPI and RandomNumber expansion:
#    https://wiki.placeholderapi.com/users/placeholder-list/minecraft/#randomnumber
end_by_checkmate:
    - 'to_winner: console_command: eco give %player_winner% %randomnumber_value_100_120%'
```

Additionally, you can use the `%player_winner_points%` variable that MineChess provides and the Math expansion to generate a random number depending on the final points of the player.

```yaml
# PlaceholderAPI Math expansion:
#    https://wiki.placeholderapi.com/users/placeholder-list/minecraft/#math
# In this case, if the player wins with 10 points, the reward would be between
# 100*10 ($1000) and 120*10 ($1200)
end_by_checkmate:
    - 'to_winner: console_command: eco give %player_winner% %math_0:0_{randomnumber_value_100_120}*{player_winner_points}%'
```


---

# 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:

```
GET https://ajneb97.gitbook.io/minechess/faq.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.
