# Lucky Coin

To the Sushi Samurai, every coin flip is a whisper from the ancestors, a nudge whether to unsheathe the chopsticks or sheath them in peace.

<figure><img src="/files/5w21wOQOhzMaGVTStdtx" alt=""><figcaption></figcaption></figure>

***

## Set up a Match or Join one

* Players can choose to play on an existing Match, or create their own
* All Matches are created by players

## Setting up a Match

* To set up a Match, just define the bet amount
* Once confirmed, the Match becomes available for other players to join
* After another player plays the Match, the Match is finished.

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

## Join a Match

* Find an available game, indicated by the 'Play' button
* Wait for the results of the Match
* If Win, go to the Game History to Collect Rewards

<figure><img src="/files/1nTZPkbPItWMyeCvkn2E" alt=""><figcaption></figcaption></figure>

## Collect Rewards / View Game History

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

## Randomness for Lucky Coin

{% hint style="info" %}
Randomness for Lucky Coin is generated by using a future block. \
\
This creates strong randomness, but because the smart contract is only able to get block hash of 256 blocks history, if a player joins, match and wins, he should claim the reward immediately or at least in 255 blocks (8mins), otherwise the winnings are lost.
{% endhint %}


---

# Agent Instructions: 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://docs.sss.game/minigames/lucky-coin.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.
