We're building provably fair AI gaming — where the opponent can't cheat, and you can prove it.
Most AI opponents run on opaque servers. When you lose, you wonder if the house rigged the read or rewrote its move after seeing yours — and you can never know. ZEGON is our answer: a pixel-art gunslinger duel against a blindfolded AI that reads your patterns but cannot see your current move. Every round leaves on-chain proof that ZEGON committed before you acted.
Built on 0G (Compute + Chain + Storage) for the Zero Cup 2026 hackathon. The repositories below are the open-source layers — playable today, forkable tomorrow.
| Project | Description |
|---|---|
| 🤠 ZEGON DApp | Turn-based duel vs a blindfolded AI with sealed inference on 0G Compute. Commit-reveal on Galileo, read-streak / DEADEYE, items, tutorial, daily pool, tournament phases, style PvP challenges, optional match stakes, duel audit, global leaderboard, gunslinger NFT, VERIFY flow. Play free — wallet only at the end for ranking. |
| 🌐 ZEGON Landing | Official marketing site — provably fair AI gaming, commit flow preview, 0G stack breakdown, FAQ, and launch overlay into the dapp. |
| Repository / Package | Purpose | Language |
|---|---|---|
| 🎮 Zegon-DApp | Monorepo — Phaser 3 client, Node API, Solidity contracts, full 0G integration | |
| 🌐 Zegon-Landing | Vite + React landing page with dark neo-western glitch design system | |
packages/game-core |
Pure duel logic — combat, read streak, DEADEYE, items, archetypes, scoring | |
packages/game-client |
Phaser 3 + Vite client (1280×720, sprite HUD, tutorial, i18n EN/ES) | |
packages/game-server |
Node API — 0G Compute inference, chain commit-reveal, Storage uploads, challenges, match pool, audit index, leaderboard | |
contracts/ |
ZegonDuel.sol, ZegonDailyPool.sol, ZegonMatchPool.sol, ZegonGunslinger.sol on Galileo |
ZEGON Landing (marketing)
│
launches into
▼
ZEGON DApp (Phaser client)
│
┌───────────────┼───────────────┐
│ │ │
reads history commits hash uploads proof
▼ ▼ ▼
┌────────────┐ ┌────────────┐ ┌────────────┐
│ 0G Compute │ │ 0G Chain │ │ 0G Storage │
│ │ │ (Galileo) │ │ │
│ sealed TEE │ │ commit- │ │ duel log + │
│ inference │ │ reveal │ │ attestation│
└────────────┘ └────────────┘ └────────────┘
│ │ │
└───────────────┴───────────────┘
│
VERIFY after every duel
(session token + on-chain fallback)
Per-round flow: ZEGON receives only your action history → sealed inference on 0G Compute → commitMove(hash) on-chain before your buttons unlock → you choose FIRE, DODGE, or an item → revealMove → resolve damage (5 lives) → read streak updates. After the duel: recordDuel + blob upload to 0G Storage → VERIFY ON-CHAIN at /api/duel/verify/:duelId.
| Typical AI game | ZEGON | |
|---|---|---|
| When you lose | Was it rigged? | You can check |
| AI move timing | Hidden server | Locked first |
| Can the house cheat? | You'd never know | Proof exposes it |
| Does the duel feel real? | Often hollow | Stakes land |
Tagline: "It can't see you. It reads you. Outdraw the blind."
The wedge: provably fair today covers RNG (dice, casino). ZEGON applies it to AI decisions with hidden information — sealed inference proves the model only saw your history; commit-reveal proves it locked in before you moved.
- Actions:
FIRE,DODGE, and one-click items — Smoke (break read), Plate (block shot), Mirror (reflect). - Read streak: 2/2 ticks in the header HUD → DEADEYE (lethal read if ZEGON predicted you).
- 5 lives shown as hearts/skulls — no opaque HP numbers.
- Tutorial: 9 lessons + 6 guided practice rounds before your first real duel.
- Modes: Standard (ZEGON archetypes), Daily duel with on-chain stake pool, and style PvP challenges (share a link — ZEGON mimics the challenger's rhythm; win/loss resolve).
- Tournament: Global Ranking tracks three UTC phases (Jul 9–19) with live countdown.
- Audit: Round-by-round duel logs from 0G Storage (Profile, Leaderboard, or
verify.html?root=). - Match stakes (optional): Symmetric OG testnet pool — free play always available.
- Wallet optional: play free; connect at the end to submit your best score to the global leaderboard.
- i18n: English and Spanish, including in-game settings mid-duel.
| ZegonDuel | 0x2Fc47e82c30B9d1B9193fa1978E96A92d7b760b0 |
| ZegonDailyPool | 0xF0011177988a323d2dFE4CFD29D2dFC2199F44ea |
| ZegonMatchPool | 0xA1085dfb4F440739B754DE6e911D0AedD56cFb4d |
| ZegonGunslinger | 0x23D671FaEd3adA290601990D45A959F1b60BFdb4 |
| Chain ID | 16602 |
| RPC | https://evmrpc-testnet.0g.ai |
| Explorer | chainscan-galileo.0g.ai |
| Faucet | faucet.0g.ai |
Backend sponsors gas on testnet so anyone can play without a wallet.
We welcome PRs, bug reports, and gameplay feedback across every public repository.
- Game logic — extend
packages/game-core(combat rules, items, modes). - 0G integration — improve Compute prompts, chain flows, or Storage persistence in
game-server. - Visual / UX — Phaser scenes, HUD, tutorial, or landing sections in their respective repos.
- Docs — pitch deck (Google Slides) and source in
ZERO_CUP_PITCH.mdinside Zegon-DApp.
Per-repository. See individual repositories for license details.
Tip
Play now: Launch ZEGON → complete the tutorial → duel the blind AI → hit VERIFY ON-CHAIN after the fight. Fair dice already exist. ZEGON proves the mind is fair.
