Skip to content

Simple betting game Clarity smart-contracts

Notifications You must be signed in to change notification settings

DAle-q/Gamingcontract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gamingcontract

Simple betting game Clarity smart-contracts

Logic:

This is a simple betting game contract. There will be a target value set initially. There are 2 players Player1 and Player2 . Both the players will bet some amount. Whoever bets the amount equivalent to target/destiny amount is the winner for that round. Once the player wins , the contract will transfer the prize money in STX units equivalent to the target amount.

Getting started :

npm install

Run tests:

npm run-script dicegame / npm run test

Also check out original Clarity smart contracts tutorial in https://github.com/blockstack/clarity-js-sdk/tree/master/packages/clarity-tutorials

About

Simple betting game Clarity smart-contracts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published