Sitemap

Cream Game: Coin Flip

2 min readJul 15, 2022

--

Press enter or click to view image in full size

The Coin Flip is the second game to launch on the Creamies Ecosystem and is a web 3 game built fully on the Hedera public ledger with a native HTS token. (Youtube link: https://www.youtube.com/watch?v=uJYUTs2Id28)

Coin Flip: This is a straightforward game of chance using a 2 sided coin where users select a side, heads or tails, to win. If the user correctly predicts the outcome, the game returns a 2 to 1 payout on the original play. 3% is deducted for every win (on the winnings).

Get Creamies NFT’s stories in your inbox

Join Medium for free to get updates from this writer.

WIN SCENARIO:
Player 1 predicts heads and plays 500 $CREAM. The coin lands on heads. Player 1 is returned 970 $CREAM (2 x 500 = 1000 -3% = 970 $CREAM). Game ends.

Loss scenario:
Player 1 predicts heads and plays 500 $CREAM. The coin lands on tails. Game ends.

The proof of randomization is recorded historically and displayed directly on the page. The History tab is broken up into 3 sections: Leaderboard, My history and Historical data.

Leaderboard lists the winningest wallet. (trailing 1 week)
My history lists current connected wallets last transactions.
Historical data lists all wallets and transactions played. (trailing 15 actions)

The function used is a straightforward randomizer function from the core Javascript library (https://www.w3schools.com/js/js_math.asp) with no modifications to alter the outcomes.

--

--

Creamies NFT
Creamies NFT

Written by Creamies NFT

Creamies NFT and ecosystem on built on Hedera