This repository contains Dicegame smart contract source code and Dicegame Debot smart contract source code.
The Game of Dice is very simple.
There are two dices. Player can choose a winning dice and make a bet. If player wins the contract transfers back twice as much as was the bet.
Dicegame contract provides the logic and stores the bank.
Dicegame Debot provides a chat-based interface to play Dicegame contract.
To run Dicegame Debot in Surf open following link
0:9d8960d87978f503b05324078a1655cdd7afd152a2fd07dfb155907d095bc417
- click "Start new game" menu item
- attach you multisignature wallet
- click "ROLL!"
- check transaction from Dicegame contract
Click "Bet x 2" button to double current bet. To set bet manually click "Set bet manually".
Click "Switch winning dice" button.
In Game menu there is a game summary showing game address, min bet, max bet, max payout and total payouts amount.
Click "Back to main menu" to get back to main menu.
Click "Select dicegame contract" to get list of available contracts.
Enter Dicegame number you wish to play with.
Dicegame Debot can be run using tondev
:
tonos-cli --url net.ton.dev debot fetch 0:9d8960d87978f503b05324078a1655cdd7afd152a2fd07dfb155907d095bc417
tonos-cli --url main.ton.dev debot fetch 0:9d8960d87978f503b05324078a1655cdd7afd152a2fd07dfb155907d095bc417