This is an implementation of decentralised app.
- Clone the repository
git clone https://github.com/KSVSC/hi-lo
cd hi-lo && npm i
truffle build
cd app && npm i
- Run the backend server
go run Backend.go
from thebackend/
directory - Run the blockchain test net
truffle develop
and usedeploy
in the interactive CLI to deploy the contracts - Run the front-end server
npm start
from theapp/
directory
Enjoy the game!
The UI of the game was built with Two.js
(https://two.js.org/) backend (deployed on blockchain) was written in Solidity and a minimal Golang server is used as a backend for handling the contract addresses.
- It is a multiplayer game.
- Once the game is deployed we see a open card with some value.
- Players can register to the game by betting their commitments High/Low.
- With an interval of every 30 sec the new cards are released.
- After the next card is revealed, all the players who bet their commitment for previous card reveal their commitments.
- Players with right bet recieve money.