Skip to content

Dice game contract developed by using DAOPlatform GameSDK

License

Notifications You must be signed in to change notification settings

DaoCasino/dice-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice game

Build Status

Branch Build Status
Master master

Description

Simple dice game for DAOPlatform based on DAOBet blockchain. Implemeted by sdk.

Rules

Player can choose value from 1 to 99. After throwing the dice, if the user value is less than the random value of the dice, the player win. Win coefficient calculating by formula: where he - house edge and N - player number.

Try it

Build

git clone https://github.com/DaoCasino/dice-game
cd dice-game
git submodule init
git submodule update --init --recursive
./cicd/run build

Run unit tests

./cicd/run test