Train your robot to fight, let it join autonomous robot tournaments and earn.
Iron Corner is a robot boxing game where you train a fighting robot and then watch it fight matches on its own.
There are two ways to train it, you can either show it how to fight by manually controlling it, or giving voice instructions. It gathers data like range, position, guard, opponent position, posture, and many more. It learns using the data by fine tuning via LoRA and also holds a memory.
Once the fight starts you can't control it, it performs according to what it is taught. Every 1.5 seconds each bot decides with help from 0G for a plan from its own brain, and a bubble shows which rule or demo it followed.
The bot's health is its wallet. Every clean hit it takes pays the other corner through an x402 endpoint that settles on Hedera. When the wallet can't cover the next hit, the bot is knocked out. The user can throw in the towel or withdraw if the bot is performing bad.
Every fighter has its own identity on chain:
Before it meets an opponent it knows nothing about, a bot decides by itself whether to spend 2 cents over x402 on a scouting report of that opponent's past fights. The Mumbai Belt is an NFT that moves on Hedera to whoever beats its holder in a ranked fight.
Every bot has the same body (same damage, speed and reach), so only the brain differs. The server resolves every exchange, and each fight's random rolls come from a seed whose hash is published at the start and revealed at the end, so anyone can replay a fight from its 0G episode log and check it.
Players have a reason to come back each day: 5 sparring rounds of energy, a training streak, and a level and five stats that only go up with practice. "Fight camp" goes further and fine-tunes a LoRA adapter for one fighter on 0G Compute. On 24 fight situations it hadn't seen, the base model matched the coach 0 times and our third camp matched 17.
There are two parts: a Unity 6 game (URP, C#) for iOS, Android and macOS, and a Node 22 + TypeScript + Express backend on Fly.io. They share one written contract (docs/spec.md). The game sends fight state and push-to-talk audio. The backend runs every fight and returns what happened, so a modified phone can't cheat.
0G Private Computer: we call the 0G router through the OpenAI SDK (it's OpenAI-compatible). qwen3-omni-flash transcribes the coaching audio, and qwen-flash turns it into one brain rule, picks a stance and combo every 1.5 s during fights (about 1.2 s median), and writes 1 to 3 lessons after each fight. For each decision we pull the 6 nearest demos from the owner's demo library and put them in the prompt. Every x_0g_trace.request_id is shown in the game next to the plan it produced. If 0G doesn't answer within 4 s, the bot covers up and waits instead of making up a move. Players can also sign in with Privy and link their own pc.0g.ai key (the iAI bonus path). From then on their bot's calls are billed to their own credits, and we count the spend from 0G's billing trace.
0G Storage and Compute: a brain (rules, demo library, stats snapshot) is AES-256-GCM encrypted with a per-bot key derived through HKDF and uploaded as a new version on every save. Each fight's full log goes up as a public episode that the game can replay. Fight camp builds a training set from a fighter's sparring and runs a real LoRA fine-tune of Qwen2.5-0.5B on 0G Compute. Our first camp scored 1/24. Scores rose once we used the Alpaca instruction layout 0G's trainer expects and wrote the fight state in words ("distance=far"), since a 0.5B model compares numbers badly.
Hedera (no Solidity): each bot gets its own testnet account and its own x402 client. POST /arena/hit is protected with x402 (exact scheme, settled through the x402.org facilitator). Its price is the damage in cents and payTo is the attacker. The defender's agent pays automatically, with a per-payment cap and a fight budget it can't go past. Payments run in a background queue and hence the fight never has to wait on the settlement (2 to 6 s). POST /arena/scout is a second paid route that bots buy from on their own. HCS topic 0.0.11326019 logs every fight start, hit, payment, KO and episode root. HTS mints an IRON NFT collection: a fighter card per bot, with HIP-412 metadata pointing at its 0G brain, and serial 1 is the Mumbai Belt, which moves to whoever beats its holder in a ranked fight. All of this uses the Hiero JS SDK, with no contracts.
ENSv2 on Sepolia: we registered ironcorner.eth on ENSv2 with its own UserRegistry, and each fighter gets a subname owned by its own EVM key (the same key as its Hedera account). Permissions took the most hacking. Enhanced Access Control roles are scoped per key and not per name, so we deploy one PermissionedResolver per fighter. On each one the arena's wallet can write only the fight keys (ironcorner.record, rating, brain, agentid, hedera, nft), and the fighter's key can write only description and avatar. We tested all four allow/deny cases against the live resolver. grantSetterRoles can't run inside initialize, so setting up each fighter takes one extra multicall. There's no SDK for registry writes yet, so we encoded calls from the deployment ABIs ourselves and read proxy addresses out of the ProxyDeployed event. When an owner edits their bio in the game, the fighter's own key signs that transaction. Any ENS client can read a fighter's record through the Universal Resolver.
Fairness: matchmaking picks at random among the 3 closest ratings using crypto.randomInt, and each fight commits to a seed hash at the start and reveals the seed at the end. Ratings use Elo.

