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

# Fairgame

## ⚖️ How Base Sofa Ensures Fair Play

Base Sofa Bot uses Telegram's built-in random emoji games to provide a completely fair, transparent, and tamper-proof gaming experience. Here's how our fairness system works:

### 🎰 Telegram's Secure Random Generation

All outcomes in Base Sofa games are determined by Telegram’s native emoji animations:

* 🎲 Dice rolls = 1–6
* 🎯 Darts throws = 1–6
* 🎳 Bowling rolls = 1–6 (4 pins cannot remain)
* ⚽️ Football = goal or miss
* 🏀 Basketball = basket or miss

<div><figure><img src="https://2978180990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfudMe5Kb1HSTSCzMZnFU%2Fuploads%2FOwxP4EI8gDqv6bSb1cuw%2Fbowl.gif?alt=media&amp;token=007cfbb3-4ba5-4b76-8289-45963ed9a8ba" alt=""><figcaption></figcaption></figure> <figure><img src="https://2978180990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfudMe5Kb1HSTSCzMZnFU%2Fuploads%2FcGKcx1F5MeMxylTHMqvv%2Fdarts.gif?alt=media&amp;token=b94bf9c2-52a0-4cf4-8fe6-22fe2826d37d" alt=""><figcaption></figcaption></figure> <figure><img src="https://2978180990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfudMe5Kb1HSTSCzMZnFU%2Fuploads%2FQrPHHHnryBauzOqoJlkb%2Fdice.gif?alt=media&amp;token=b46cb601-a5e3-4dae-8932-2e127fe81e6b" alt=""><figcaption></figcaption></figure></div>

These results are generated by **Telegram’s servers**, not Base Sofa — which means:

* ❌ Neither developers nor players can manipulate outcomes
* 🎲 Results are completely random and cannot be predicted
* 👀 All players see the same animation and final result

🔗 Check more on this in the official Telegram docs:\
\- [**Telegram API Docs**](https://core.telegram.org/api/dice)\
\- [**Python Telegram Bot Docs**](https://docs.python-telegram-bot.org/en/v21.5/telegram.dice.html)

### 🔒 Security Measures

To ensure integrity, Base Sofa includes several layers of protection:

* **Forwarded Message Protection**: Any forwarded emoji rolls are rejected. Telegram does not allow hidden forwarding for these emojis.
* **Timestamp Verification**: Every roll is checked to ensure it was made after the round started.
* **Auto-Roll System**: If a player is inactive for over 3 minutes, the bot rolls on their behalf to prevent game-stalling.
* **Round Tracking**: Every round is tracked precisely to avoid duplicate, early, or out-of-sync rolls.

All of these protections apply across **Normal**, **Double Roll**, and **Brawl Mode**, including multi-player games with sudden death rules.

### ⛓ Blockchain Verification

Every completed game includes:

1. Permanent Game Storage:&#x20;

   All game results are permanently recorded in our database with:

* Player IDs
* Chat IDs
* Bet amounts
* Final scores
* Transaction hashes
* Timestamps

1. **Blockchain Verification**: All transactions can be verified on [BaseScan ](https://basescan.org)(Base Network Explorer)
2. **Confirmation Messaging**: Upon game completion, verifiable blockchain transaction links are posted in the chat for complete transparency.
