We’ll introduce to the development process with an example of a dice program with specific source code: cocos-dice-sample。This includes contract development, deployment, debugging, and front-end contract call.
We hope the community have a complete understanding of DApp development based on Cocos-BCX.
The game rules of Dice are very simple, with the following specific steps:
- Set the bet amount
- Adjust the slider to bet on the upper limit of the dice number and change the chance of winning
- Click “Roll” to place a bet. If the result is less than your bet number, you will be awarded immediately. The program will make the settlement based on the winning rate.
Updated 5 months ago
WHAT'S NEXT LABEL
|9.1.1 Contract Development|