Cream Game: Cream Roll
The Cream Roll is the first game to launch on the Creamies Ecosystem and the first actual web 3 game to be built fully on the Hedera public ledger with a native HTS token. (Youtube link: https://youtu.be/aH2tcS099r8)
Cream Roll Game: This is a straightforward game of chance using a single die (6 sided) where users pick a side 1 through 6 to win. If the user correctly predicts the outcome the roll the game returns a 6 to 1 on the original play. 5% is deducted for every win (on the winnings).
WIN SCENARIO:
Player 1 predicts #6 and plays 100 $CREAM. The die lands on #6. Player 1 is returned 570 $CREAM (6 x 100 = 600 -5% = 570 $CREAM). Game ends.
Loss scenario:
Player 1 predicts #6 and plays 100 $CREAM. The die lands on #1. 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.
My history lists current connected wallets last transactions.
Historical data lists all wallets and transactions played.
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. You can see simulation conducted with each simulation entailing 5000 rolls. This indicates the randomizer functions as intended with no bias.
Get Creamies NFT’s stories in your inbox
Join Medium for free to get updates from this writer.
Simulation 1: (5000 rolls). The 2 columns are results and the occurrences of the result (this is a direct output from the script used)
{
“1”: 797,
“2”: 875,
“3”: 845,
“4”: 821,
“5”: 854,
“6”: 808
}
Simulation 2:
{
“1”: 802,
“2”: 858,
“3”: 826,
“4”: 851,
“5”: 847,
“6”: 816
},
Simulation 3:
{
“1”: 812,
“2”: 837,
“3”: 834,
“4”: 797,
“5”: 879,
“6”: 841
},
—







