Boardman Duel: put USDC on a 1v1, no middleman
When two people play FIFA or chess for money, somebody has to hold the cash. Usually it's a friend, and sometimes the friend disappears. Boardman Duel replaces the friend with a smart contract on Arc.
Pick the game, type or say the terms, set a stake of up to 5 USDC and send your opponent a link. They match the stake to join. When the game ends, you both say who won. If you agree, the winner is paid straight away. If you don't, a referee you both chose checks the proof and decides. The referee never touches the money.
How I made it: I didn't write the code by hand. I wrote the rules in plain English (prompt 1), and Arc Studio wrote the smart contract, ran 104 tests, deployed it and built the app. Then I read what it made and found a rule I didn't like: the referee could settle a duel before either player had reported. Prompt 2 fixed that and added 31 tests. Prompt 3 was the design pass, aimed at fast loading on slow mobile data in Lagos. I used Claude to plan the prompts and make the explainer video.
What surprised me: the hardest part wasn't the code. It was deciding the rules, like exactly when a referee is allowed to step in.
Live on Arc testnet now. Mainnet launch with real USDC this week.
Tech stack
- Claude
- Claude Code (Opus 5.5)
Links
Prompt steps
Step 1
Build "Boardman Duel": a 1v1 USDC stake escrow for head-to-head games (chess, gaming matches, or AI-agent matches) on Arc. NETWORK Build, test and deploy on Arc testnet. Keep all network settings in one config file (chain ID, RPC URL, explorer URL, BoardmanDuel address, USDC address) so I can point the app at Arc mainnet later (chain ID 5042, RPC https://rpc.mainnet.arc.io, explorer https://explorer.arc.io) without touching anything else. THE IDEA Two players each lock the same USDC stake into a match. When the game ends, the winner gets the full pot. If both players agree on the result, payout is instant. If they disagree, a referee chosen when the match was created decides. If anything stalls, timeouts refund everyone. The referee can be a person or an AI agent's wallet, so one piece of software can pay out another. SMART CONTRACT: BoardmanDuel Take stakes through the USDC ERC-20 interface at 0x3600000000000000000000000000000000000000 (6 decimals). Pass the USDC address to the constructor. Never transfer to address(0), because on Arc that reverts: address(0) only ever means "open challenge" or "draw", and a draw refunds both players. Match data: - id, playerA, playerB (can b…Step 2
Change one rule: the referee must not settle a duel before the players have had a chance to report. Allow refereeDecide only when (a) both players have reported and their reports conflict, or (b) one player has reported and the other has not reported within REPORT_GRACE = 1 hour of the first report. Keep the result-deadline refund as the final fallback. Add tests for: referee blocked before any report; referee blocked while only one report exists and the grace period hasn't passed; referee allowed after the grace period; referee allowed on conflict. Run all tests again, redeploy to Arc testnet, and update the referee panel to show when the referee can act.Step 3
Redesign the Boardman Duel front end to a top-tier, award-level standard. Push the craft as far as you can: every screen, every state, every pixel. Front end only: do NOT change the contract, its ABI, the tests, or src/networks.ts. CONTEXT Boardman is a gaming protocol where humans and AI agents play 1v1 for stakes. This app is its USDC escrow. It will be judged in a demo video and used by people on slow mobile connections (Lagos, Nigeria). 1. PERFORMANCE FIRST The production JS bundle is 1.46 MB. On a slow connection the page is blank for about 15 seconds. - Code-split. Lazy-load wallet connection, chain clients and the match/duels routes. - Target under 200 KB gzipped for the first load. Report the size before and after. - Render the header, hero and form shell immediately as static markup, then hydrate. - Use skeletons for anything waiting on RPC, never blank areas. Preconnect fonts with font-display: swap. - No heavy animation or UI libraries. Use CSS and small hand-written code. 2. DESIGN SYSTEM - Identity: a premium tabletop / chess club at night. Deep ink-charcoal surfaces, bone-white text, one brass/gold accent (keep the current brass). Semantic green for win, red for d…
2 likes · 1 comment · 5 views
Comments (1)
This is really really cool. I haven't seen something like this posted on Prompted yet. I really want to see 2 agents dual it out now haha. I'm not all for gambling but this is pretty fun ngl. Great job, thanks for sharing!