> For the complete documentation index, see [llms.txt](https://xrpflip.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xrpflip.gitbook.io/docs/how-to-play/flip-game.md).

# Flip Game

### XRP Flip is a fun and simple game of chance where players can place bets based on whether they think the outcome will be **even** or **odd**. Here’s a step-by-step guide on how to play:

1. **Choose Even or Odd**:

* Begin by deciding whether you believe the outcome will be **even** or **odd**.
* This is your prediction for the flip result, and it’s the main factor that will determine whether you win or lose.

2. **Set Your Bet Amount and Margin**:

* After choosing even or odd, enter the **amount of XRP** you want to wager.
* Next, choose your **margin**—this can affect the potential payout. Higher margins may increase your risk, but they can also lead to bigger rewards if you win.

3. **Flip a Card**:

* Once your bet and margin are set, select any card from the deck to flip.
* The game will then generate a random result based on the **block hash** from the XRP Ledger, which is an unchangeable value from the blockchain. This ensures that the result is **truly random and fair**, with no way for anyone to influence it.

4. **Check the Outcome**:

* After flipping, the result will reveal whether your choice (even or odd) matches the generated outcome.
* If you guessed correctly, you win based on your bet amount and the chosen margin. If not, the wager is lost, and you can try again!

{% embed url="<https://drive.google.com/file/d/15EPhGeKx3GdYQjmtxZLjgLQ0qcfZuzpG/view?usp=sharing>" %}
