Inspiration

Our inspiration was to build a simple and fun game that everyone in the crypto space can participate in. Just like Wordle is a daily challenge for the general public, Loldle for the League of Legends community, and Globle for geography enjoyers... Cryrdle was made for the crypto degen.

What it does

The goal of the game is for players to correctly guess the randomly picked cryptocurrency of the day. For each guess, additional information are displayed that show relative information to the coin of the day. For example, one of our chosen categories is "Market Cap". If the player guesses Ethereum and the secret coin of the day is Bitcoin the front end would show that the guessed cryptocurrency is wrong and that the market cap is higher than the guessed currency. Aside from "Market Cap" there are 5 other categories that lead the player towards the coin of the day.

To participate, players have to pay 0.001 ETH, and the daily prize pool is split between all individuals with the fewest guesses.

How we built it

To build Cryrdle, we have built a core contract that utilises Chainlink Functions to call the coinmarketcap API to access the most up-to-day coin data of the top 50 coins. A Chainlink upkeep function that calls the chainlink function once a day. And lastly, the Chainlink VRF is used to determine the random coin of the day.

The front end handles all visualisation and relative to the coin of the day calculations.

Challenges we ran into

We initially struggled to build a fully on-chain game. Therefore, we started to build our contract to store players' points and the random VRF number. To pull the coinmarketcap API data and store the player's guesses we built a back-end. Luckily, chainlink functions came in at the right time to enable us to also build a decentralised solution for the core game mechanic.

Accomplishments that we're proud of

We are proud of committing to a fully on-chain version and rebuilding our product in the middle of the hackathon. We quickly learned and adopted Chainlink Functions to enable our product.

What we learned

The complexity of building on-chain products that require off-chain data.

What's next for Cryrdle

Next, we would like to make playtests with Cryrdle and test the game mechanic with actual players to make sure it's fun and engaging. Moreover, we probably have to further secure the contract to protect against any security breaches. Lastly, we would like to add different gameplay options on top of Cryrdle.

Built With

Share this project:

Updates