A super simple, consumer-focused, single-player, coin toss game with novel game mechanics, where a player can win a prize by flipping a coin.
Merlion’s Bloom is a consumer-focused, single-player game, inspired by Coin Flip, a classic digital game that allows you to flip a virtual coin in the air as if it were a real one, leaving the decision up to chance.
Merlion’s Bloom adds a twist by incorporating DeFi and novel game mechanisms that make the game a compelling experience and providing its players with real opportunities to win prizes.
Why Merlion’s Bloom?
With the theme of Singapore, Merlion’s Bloom blends the Merlion with the idea of blossoming, growth, and cycles in a softer, more organic way. Life is not linear, and weathering and thriving in ups & downs, players should trust the process!
How does it work?
To participate, a player deposits a specific amount of FLOW tokens, equal to or greater than the current game pool’s liquidity. Only one player can play at a time.
Once the deposit is made, the game uses randomness to determine the outcome. The game uses FLOW’s built-in randomness feature (VRF), which ensures the randomness is generated on-chain, without needing any external services to verify it.
If a player wins, they receive their entire deposit back plus the same amount—effectively doubling their original stake. For instance, if they deposit 4 FLOW tokens and win, they will receive 8 FLOW tokens in total. This is often referred to as “Double or Nothing.”
If a player loses, they forfeit their deposit, which gets added to the game’s pool. The next player will then need to deposit an amount that matches or exceeds the updated pool’s liquidity to play.
The game pool’s liquidity grows with each loss, while winnings come from previous players’ deposits, supported by an initial reserve pool to keep the game running.
Merlion’s Bloom is an end-to-end, fully functional, live project built using several components.
The UI (web application) is built with Next.JS and React components, leveraging the Reown AppKit to allow players to seamlessly sign in and connect to the app. The underlying smart contracts that hold the novel game mechanics are written in solidity, completely functional, and deployed live to FLOW's mainnet. The project leverages FLOW's built-in randomness feature (VRF), which ensures the randomness is generated on-chain, without needing any external services (e.g. Oracles) to verify it. This provides a much simpler developer experience and also makes the Merlion’s Bloom app fair for all players.
The middleware connecting the smart contracts with the UI uses Envio's easy-to-use indexing framework that supports any EVM blockchain using RPC, in this case, we used FLOW's publicly available RPC to index, query, and present our smart contract data in the Merlion's Bloom Front-End UI.
Integrating the Reown AppKit supports Merlin's Bloom's mission of being a super simple, intuitive, onboarding-friendly, consumer crypto app, allowing us to seamlessly onboard users in minutes with social & email embedded wallets, web3 wallet login. Unfortunately, Reown AppKit did not support social logins on the Flow EVM chain.