๐ŸŽดOpenBaccarat
0

๐ŸŽด About OpenBaccarat

A fully open-source, transparent, and verifiable baccarat gaming platform

๐ŸŽฏ Project Vision

OpenBaccarat is dedicated to creating a transparent, fair, and verifiable baccarat gaming platform. We believe that through open-source code and blockchain technology, every user can trust the fairness of the game.

This is not a gambling platform, but a technical demonstration project, aimed at showing how to build trustworthy gaming systems using modern technology.

๐Ÿ”“

Fully Open Source

All code is public on GitHub, anyone can audit the algorithms and logic

๐Ÿ”—

Blockchain Verified

Every round result is recorded on Solana blockchain, immutable and permanently verifiable

๐ŸŽฒ

VRF Random

Uses Verifiable Random Function to ensure randomness cannot be predicted or manipulated

๐Ÿ› ๏ธ Tech Stack
Next.js 16
Frontend
React Three Fiber
3D
Tailwind CSS
Styling
shadcn/ui
Components
Supabase
Database
Solana
Blockchain
ORAO VRF
Randomness
Vercel
Deployment
๐Ÿ“œ Baccarat Rules

Basic Rules

  • Uses 8 decks (416 cards total)
  • Player and Banker each receive 2-3 cards
  • Closest to 9 points wins
  • 10, J, Q, K count as 0 points, A counts as 1 point
  • Total points use only the ones digit (e.g., 15 = 5 points)

Drawing Rules

  • If either side has 8 or 9 (Natural), neither draws
  • Player draws on 0-5 points, stands on 6-7
  • Banker drawing depends on Player's third card

Burning Rules

  • At opening, burn cards based on first card value
  • Reserve 14-16 cards at shoe end (not dealt)
๐Ÿ”Œ Developer API

OpenBaccarat provides a RESTful API for programmatic access. All endpoints return JSON data with caching support.

GET
/api/games/{roundNumber}

Get detailed data for a specific round

GET
/api/rounds?format=minimal&limit=100

Batch query with flexible filters and pagination

GET
/api/docs

OpenAPI 3.0 documentation (JSON format)

GET
/api/stats

Game statistics (wins, ties, pairs)

Query Parameters for /api/rounds

roundNumber - Exact round number
roundFrom/To - Round number range
result - banker_win | player_win | tie
format - full | compact | minimal
limit/offset - Pagination (max 100)
shoeNumber - Filter by shoe

Quick Start

# Get round #42 details
curl https://www.open-baccarat.com/api/games/42
# Get latest 10 rounds (compact format)
curl "https://www.open-baccarat.com/api/rounds?limit=10&format=compact"
๐Ÿ” Round Lookup

Enter a round number to view detailed game information and blockchain verification.

๐Ÿ’ก Or access directly via API: /api/games/{roundNumber}

โš Important Notice

โ€ข OpenBaccarat is a tech demo, NOT a gambling platform

โ€ข Display only โ€” No login, No betting, No deposits

โ€ข For technical research and learning only

โ€ข Contributions to this open source project are welcome