Coder Social home page Coder Social logo

exmoria / fair Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucasholder/fair

0.0 0.0 0.0 942 KB

CLI tool and library for verifying provably fair games.

Home Page: https://fairdom.io

Rust 85.86% PowerShell 0.60% Shell 3.69% JavaScript 9.37% HTML 0.21% Makefile 0.27%

fair's Introduction

fair

CLI tool and library for verifying provably fair games. Compatible with Stake's provably fair algorithms.

crates.io documentation Build Status Build Status Appveyor

screenshot

Install

Pre-built binaries for Linux, macOS and Windows are available in release.

Remember to put it in your $PATH (e.g. mv ~/Downloads/fair /usr/local/bin/fair).

On Mac or Linux you can use this install script:

curl -sL https://raw.githubusercontent.com/lucasholder/fair/master/install.sh | sh

If you have Rust:

cargo install fair

Examples

$ fair baccarat "client seed" "server seed" 1
Hashed Server Seed: a4e53dc2f480b8fce6fe688b1317658b446299df23ad533394406427c8c19557

Player won

Player (9): ♠J - ♥10 - ♥9
Banker (5): ♥5 - ♣K
$ fair mines "client seed" "server seed" 1
Hashed Server Seed: a4e53dc2f480b8fce6fe688b1317658b446299df23ad533394406427c8c19557

Squares: [18, 15, 5]


💠       💠      💠      💠      💠
💣       💠      💠      💠      💠
💠       💠      💠      💠      💠
💣       💠      💠      💣      💠
💠       💠      💠      💠      💠

Usage

$ fair --help
fair 0.0.13
Lucas Holder <[email protected]>
CLI tool and library for verifying provably fair games (baccarat, etc.).

USAGE:
    fair [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    baccarat         Baccarat game
    blackjack        Blackjack
    crash            Crash game (uses Stake.com's parameters).
    diamond_poker    Diamond poker
    dice             Dice game
    help             Prints this message or the help of the given subcommand(s)
    hilo             Hilo game
    keno             Keno
    limbo            Limbo game
    mines            Mines game
    plinko           Plinko game
    roulette         Roulette
    slots            Slots game(s)
    video_poker      Video Poker
    wheel            Wheel game

As expected, we get the same result as on Stake.com.

Supported Games

Work In Progress... more game support coming!

  • Blackjack
  • Hilo
  • Baccarat
  • Diamond Poker
  • Dice Roll
  • Limbo
  • Plinko
  • Roulette Roll
  • Keno
  • Mines
  • Video Poker
  • Wheel
  • Slots
  • Crash

Rust API docs

fair

fair's People

Contributors

lucasholder 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.