In this video we will take everything we have learned and understand how to make our own guessing game DApp on the Plutus Playground.
In this project we will create a game where one user will lock up their lovelace with a password on the blockchain and another user has to guess it to redeem the it.
Some of the key concepts we will be looking at are:
1) Creating Datum and Reedemer classes to store data on the Cardano Blockchain
2) Receiving inputs from the user by setting up our Contract
3) Implementing and sending transactions with the user’s input
Along the way, we will be doing additional light explaination on some of the Haskell syntax that shows up in more detail.
For other similar video’s, check out our Cardano Plutls Playground Tutorial playlist:
00:00 – Intro
00:45 – Running the Game project in the simulator
02:22 – Setting up our Template Haskell code with Plutux TX
03:34 – Creating the Game object and defining the Datum and Redeemer type
06:19 – Creating the Validator script to release the funds
07:49 – Setting up code for the simulator
09:08 – Defining the Contract’s Schema to receive user input
11:33 – Defining the endpoints to receive user input
12:37 – Implementing the Lock endpoint
16:01 – Implementing the Guess endpoint
17:57 – Conclusion
Donate Ada: addr1qxws6z9qxkycclpxxpnkq202wxrlc7ke29zmpydj40a2z8aq4jx95m2pnvdrwrsrl5m30j0vce0w7k5zt0aeqzcsurwqulm5hc
Error: Contact form not found.