GithubHelp home page GithubHelp logo

nagaws / bet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chips-blockchain/bet

0.0 1.0 0.0 4.93 MB

Makefile 0.48% C 92.90% Objective-C 0.02% Assembly 1.86% C++ 4.18% Roff 0.44% Shell 0.01% CMake 0.12%

bet's Introduction

bet

The aim of this project is to provide the necessary bet API's which are sufficient to play poker from the command line. The initial draft of the game written by jl777 is here.

Basically, there exists three entities in the game DCV, BVV and Player. The role of DCV and BVV is to assist in deck shuffling, dealing and fair play of the game. To test the API's written from the player perspective we run the DCV and BVV nodes, just to start with below or the steps to run DCV and BVV.

Steps to compile

cd
git clone https://github.com/sg777/bet.git
cd bet
apt install make

Command to run DCV

cd
cd bet/privatebet
./bet dcv
(ipc:///tmp/bet.ipc) bound
(ipc:///tmp/bet1.ipc) bound

Command to run BVV

cd
cd bet/privatebet
./bet dcv
(ipc:///tmp/bet.ipc) bound
(ipc:///tmp/bet1.ipc) bound

Right now all the nodes communicating through IPC, ipc:///tmp/bet.ipc is an uplink channel{PUSH-PULL} between players to DCV, where as ipc:///tmp/bet1.ipc is the downlink channel{PUB-SUB} between DCV and Players.

Scope of these API's

Using create-player one can create the player then create deck using create-deck. Once if the player and deck creation is done, player can join the table using join-req.

Once the player joins the table and table is filled, DCV asks for player initialization(i.e deck shuffling), for that first player blinds the deck using blind-deck and sends the blinded-deck to DCV using 'player-init'.

Once after the DCV receives the initialization messages from all the players it provides DCV blinded deck and passed to BVV, then BVV blinds it further and provides the BVV blinded deck to the players. Player by using dcv-init, bvv-init and dcv-bvv-init API's stores the blinded deck Informationation values received from DCV and BVV, which further used to reveal the deck of cards.

Note

The bet-api documentation is here

Help from the community

Any feedback, suggestions on the API's or new API's which should be present inorder to play the poker from command line, please raise an issue/suggestion or message me(myid: sg777) directly or post in the #CHIPS channel on discord.

bet's People

Contributors

sg777 avatar

Watchers

 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.