Skip to content

johnetsiii/TracDice-

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

89 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎲 TracDice β€” P2P On-Chain Dice Casino

A non-custodial, peer-to-peer dice gambling app built on Intercom β€” the Trac Network P2P agent sidechannel stack.

Trac Address: trac1jqul5ff9w7mc5x0c4rc2gjuy09nd6y9pq47h9axunfu7k067yxksd6lgav


What is TracDice?

TracDice is a fully on-chain dice casino running over Intercom's P2P sidechannel infrastructure. Players bet TNK tokens against the house pool and roll dice in real-time. All randomness is verified on-chain via Trac Network's replicated-state layer.

Game Modes

Mode Description Payout
Exact Number Pick the exact dice face (1–6) 5Γ—
High / Low High = 4-6, Low = 1-3 2Γ—
Even / Odd Even or Odd result 2Γ—

Features

  • πŸ”΄ Live P2P β€” bets negotiated over Intercom sidechannels
  • ⛓️ On-chain settlement β€” outcomes recorded in Trac replicated state
  • ⚑ Instant payouts β€” TNK sent directly, no custodian
  • 🎰 Three bet modes with different risk/reward
  • πŸ“Š Live session stats β€” W/L tracking, net P&L, streaks

image

How It Works

Player β†’ Intercom Sidechannel β†’ House Agent β†’ On-chain Commit β†’ Reveal β†’ Payout
  1. Player submits bet + prediction via Intercom P2P message
  2. House agent commits to a random seed on Trac replicated state
  3. Dice result is revealed and verified
  4. Winner receives TNK directly via Trac Network transfer

Screenshots

(Add your screenshots here showing the app running)


Run Locally

git clone https://github.com/YOUR_USERNAME/intercom
cd intercom
# Open index.html in your browser for the UI demo
open index.html

# To run the full Intercom agent stack:
npm install
npm start

Stack

  • Frontend: Vanilla HTML/CSS/JS β€” index.html
  • P2P Layer: Intercom sidechannels
  • Settlement: Trac Network replicated state
  • Token: TNK (Trac Network Token)

Contributing

PRs welcome. See awesome-intercom for the full list of Intercom forks.


Fork of Trac-Systems/intercom

About

TracDice 🎲

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 81.9%
  • HTML 18.1%