Skip to content

chips-blockchain/bet

Repository files navigation

bet CD

Pangea-Bet

Decentralized poker platform built on the CHIPS blockchain using Verus IDs for node communication.

Node Types

  1. Dealer: Manages tables
  2. Player: Joins tables
  3. Cashier: Validates transactions

Ports

  • GUI HTTP: Port 1234 (serves web interface)
  • WebSocket: Ports 9000 (dealer), 9001 (player), 9002 (cashier) - configurable in respective config files

Prerequisites

  • Linux or macOS
  • Running CHIPS daemon (chipsd) with blockchain synced
  • Verus IDs registered on CHIPS blockchain (for dealer/cashier)
  • Ports 1234 and 9000-9002 open

Installation

Building from Source

  1. Clone the repository:

    git clone https://github.com/sg777/bet.git
    cd bet
    git submodule update --init --recursive
  2. Build the project:

    cd poker
    make
  3. Build dependencies (if needed):

    make --directory ../external/iniparser

See Compilation Documentation for detailed build instructions.

Pre-compiled Binaries

Pre-compiled binaries are available in the Releases section.

Configuration

Configuration files are in poker/config/. See Configuration Documentation for details.

Usage

Starting Nodes

# Dealer
cd poker && ./bin/bet dealer

# Cashier
cd poker && ./bin/cashierd

# Player
cd poker && ./bin/bet player

Accessing the GUI

Open http://localhost:1234 in your browser after starting any node.

Funding and Withdrawals

Get address and fund:

chips-cli getnewaddress
# Send CHIPS to this address

Withdraw:

cd poker && ./bin/bet withdraw <amount> <destination_address>

Note: Ensure sufficient CHIPS for stake size + transaction fees.

Documentation

Comprehensive documentation is available in the docs/ directory:

License

See LICENSE file for details.

Packages

No packages published

Contributors 10

Languages