Inspiration
I was invited to the Hack House at SBC and randomy came up with the idea with other hackers in the house.
What it does
It allows the user's to connect and sign with their wallet, spin the wheel and then win DarkFortune token "Aleo Credits" on chain.
How we built it
We used Svelte, the PuzzleHQ react library and then used the deno JRS to run the application since it can handle both front end frameworks in a single web server.
Challenges we ran into
The main challenge is connecting to the RPC natively, but the puzzle SDK made that easy. The other part was finding the code on time to create an application that made sense to make in less than 8 hours.
*Note. I was mainly doing the hack to have some fun experimenting with Svelte and Deno to find a faster way to connect directly with Puzzle, and also run a deno webserver to make my front end much easier to manage since much of the Svelte code was completed : https://github.com/guns-n-goose/wheel-of-fortune/blob/master/Wheel-of-Fortune.svelte
I did not have time to finish the project,
However, The DarkFortune Contract compiles perfectly fine, and the Svelte Code is complete and run's a wheel of Fortune. The idea is that we connect the app using Puzzle Wallet, we run the contract to randomly guess the private option on the wheel, and then you win a prize if you reveal the correct / private number hidden on next indexed mapped object. *
Accomplishments that we're proud of
It's a cool front end that can a pretty flexible way of building app's that are interactive.
What we learned
how to combine react and svelte using a single JSR that will help build applications much faster.
What's next for DarkFortune
We would love to expand this tool-kit to make other gameFi games for blockchains.
Built With
- deno
- leo
- react
- svelte
Log in or sign up for Devpost to join the conversation.