Giter Club home page Giter Club logo

dicegame's Introduction

Game of Dice and Dicegame Debot

This repository contains Dicegame smart contract source code and Dicegame Debot smart contract source code.

What is Game of Dice

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

How to play the Game of Dice

  • click "Start new game" menu item
  • attach you multisignature wallet
  • click "ROLL!"
  • check transaction from Dicegame contract

How to change bet amount

Click "Bet x 2" button to double current bet. To set bet manually click "Set bet manually".

How to change winning dice

Click "Switch winning dice" button.

How to see game summary

In Game menu there is a game summary showing game address, min bet, max bet, max payout and total payouts amount.

How to change the Dicegame to play with

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.

How to play in CLI

Dicegame Debot can be run using tondev:

DevNet

tonos-cli --url net.ton.dev debot fetch 0:9d8960d87978f503b05324078a1655cdd7afd152a2fd07dfb155907d095bc417

Free TON

tonos-cli --url main.ton.dev debot fetch 0:9d8960d87978f503b05324078a1655cdd7afd152a2fd07dfb155907d095bc417

dicegame's People

Contributors

romanden1sov avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.