# 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="https://content.gitbook.com/content/u7nx38GRSqwdcX28CmLF/blobs/JHQqhHFl3cxVnsoureIK/Presentation1e3r.pptx%20(8).gif" 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="https://content.gitbook.com/content/u7nx38GRSqwdcX28CmLF/blobs/R2CainrsyWNBn5qxf6U6/image.png" 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="https://content.gitbook.com/content/u7nx38GRSqwdcX28CmLF/blobs/I1UjLKapeOpNAma6YyUf/image.png" alt=""><figcaption></figcaption></figure>

## Collect Rewards / View Game History

<figure><img src="https://content.gitbook.com/content/u7nx38GRSqwdcX28CmLF/blobs/GADQ0dpId3jx07AQzqdG/image.png" 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 %}
