Inspiration The best part of watching pro esports isn't the stats screen. It's the draft: two teams guessing what the other will lock in. Fans at a Cloud9 booth have a few minutes, not a full scrim, so I wanted that feeling in a game anyone can pick up with a mouse: a secret pick, a simultaneous flip, and a number from real pro matches that says whether your read was right. Cloud9 and GRID offered official pro-match data, so every card's strength and every matchup in Veil Lane comes from real games, not from my guesses.

What it does Veil Lane is a 1v1 card mind game, played against the CPU or online. A match has three rounds. Deal: each round, each player gets a hidden 10-card hand: 2 random cards for each of the five roles (Top, Jungle, Mid, Bot, Support). The two players get different cards. Pick: lanes are played in order, Top to Support. In each lane you can see your opponent's 2 candidates, but not which one they'll pick. You secretly choose 1 of your own 2 cards as your main card, face-down. Partners: you can also add any number of partner cards from the rest of your hand. Partners with real pro-data synergy glow gold and add stacking bonuses of +5/+4/+3/+2/+1% by synergy rank. Flip: both cards flip together, partners fly in, and the head-to-head win rate from pro data plus the partner bonuses decides the lane. No matchup numbers are shown before the flip, so every lane is a pure read on your opponent. Spend or save: a partner you use turns red and can't partner again that round, though it can still be played as the main card in its own lane. Red resets each round. Your opponent can see how many of your cards are red. Go all-in to win this lane, or save partners for later? The higher five-lane total wins the round. Fearless: a main card you play is never dealt to you again for the rest of the match, so your pool shrinks and every round plays differently. Clock: 20 seconds per lane. On timeout a random main card and the single best partner are played. Modes: vs CPU (it reads your two open candidates, sometimes double-bluffs, and decides when to spend or save its partners), online rooms with a 4-character code or invite link, guest play with a nickname and win/loss record, a ready indicator and rematch for online matches, a back/forfeit flow, and a repeatable test mode with ?seed=N. Presentation: 92 original cards with painterly art, inspired by pro esports roles; English/Chinese UI; music by Kevin MacLeod (CC-BY 4.0) and a Kenney card sound (CC0).

How I built it Tools: built in JetBrains WebStorm, with Junie, JetBrains' AI coding agent, used through the JetBrains Air plugin in the IDE. Front end: Vite + TypeScript + Phaser 4. Scenes cover the menu, the HOW TO PLAY tutorial, sign-in, lobby, game table and results. Rules engine: pure TypeScript modules in src/game/rules/ (dealing, lane play, synergy tiers, Fearless, timer, CPU). The same code runs in the browser and on the server, with about 160 Vitest tests. Data: win rates and synergy pairs are precomputed from official GRID pro-match data into a summary table. Only that table is in the repo; the raw data is never committed. Matchups use a shrinkage estimate, and the head-to-head part is scaled (×1.5, chosen by simulation) so a wrong guess really costs you. Online: a Cloudflare Worker with two SQLite-backed Durable Objects, MatchRoom and Accounts, over WebSocket (Hibernation API). The server holds the hidden picks and runs the rules, so a browser only ever gets the opponent's two open candidates for the live lane. Durable Object alarms enforce the 20-second clock. Only an account id, nickname and win/loss counts are stored. Deploy: the game is served as Cloudflare Workers static assets, auto-deployed from GitHub.

Challenges I ran into The first design was solvable. Veil Lane started as a draft with all five lanes revealed and matchup percentages on screen. In a 10-match self-playtest, the CPU's pick was guessable 85% of the time: with the numbers visible, the "right" card was obvious, so there was nothing to read. Fixing the mind game. I hid all matchup numbers until the flip, removed a lane-order bonus, and added stacking partners that are used up within the round. Guessability dropped to 67%, and rounds won with fewer lanes (winning on total while losing more lanes) dropped from 23% to 13%, so the scoring now feels fair. Keeping secrets online. Hidden information is easy to leak through the network. The server is authoritative: it keeps both hands and only sends what each player may see, and it enforces the timer even if a player disconnects or stalls. Original content on pro data. All 92 card names and illustrations are original, inspired by the five standard pro roles, while the numbers behind them still come from real GRID matches.

Accomplishments I'm proud of A complete, live loop: menu → tutorial → match → round results → match over → play again, playable right now in a browser, with no install and no account needed. A mind game backed by data: I measured my design changes (85% → 67% guessability, 23% → 13% rounds won with fewer lanes) instead of only going by feel. A real online mode where cheating by inspecting the network doesn't work, because the browser never receives hidden cards. A CPU opponent that reads, bluffs and manages its partners. In tests it wins about 65% of decided lanes against a random picker and about 54% against a greedy one. 92 original painted cards and about 160 automated tests on the rules.

What I learned Hidden information is the game. Showing one number (the matchup %) turned a mind game into arithmetic. Playtest with numbers. Tracking guessability and how rounds were decided showed problems that felt fine in casual play. An AI coding agent is most useful with a clear spec and a test suite. Junie could change the rules quickly and safely because pure rule modules and Vitest tests showed straight away when a change broke something. Durable Objects are a natural fit for small, stateful game rooms: one object per room holds the state, the timers and the sockets.

What's next for Veil Lane Booth mode: a one-round quick match, plus a local leaderboard on a second monitor that works offline, to keep the line moving (each lane is capped at 20 s + a ~6 s reveal, so one round takes at most about 2½ minutes). Player stats: show each player's read rate and partner-spending patterns after the match. More data: refresh the table with new GRID seasons, and let players pick a patch or region. Ranked online play and spectator view for booth screens.

Methodology write-up (required) Problem: Category 3 asks for a fast, easy-to-learn mini game that entertains fans at a Cloud9 booth, captures the excitement of esports, and survives repeated play. Approach: Veil Lane turns the most tense part of pro play, reading what your opponent will pick, into a mouse-only card duel. (1) Real data, no guesswork: card strength, head-to-head matchups and synergies are precomputed from official GRID pro-match data, so every flip shows a real pro win rate. (2) A pure read: numbers stay hidden until the flip, and each lane is a simultaneous blind choice between two known candidates, so anyone can play without game knowledge, and experts still get to out-think people. (3) One meaningful decision per lane: spend partners now or save them, with the opponent able to count your red cards. (4) Validated by measurement: a 10-match self-playtest found the CPU's pick guessable 85% of the time with numbers shown; hiding them and adding consumable stacking partners brought it to 67%, and rounds won with fewer lanes fell from 23% to 13%. Booth fit: no install, guest play in one click, mouse-only controls, a 20-second clock per lane so nobody stalls the line, a clear results/match-over screen with PLAY AGAIN that starts a fresh match, a back/forfeit flow, and server-side rooms that clean themselves up (idle rooms are deleted after 2 hours).

JetBrains usage — Tooling explanation (required) JetBrains WebStorm (IDE): the whole project was written in WebStorm: the TypeScript/Phaser front end, the Cloudflare Worker and Durable Objects, and the Vitest suite. I used it to navigate the shared rules code between client and server, run and debug the tests, and review every change before committing. Junie (JetBrains AI coding agent), via the JetBrains Air plugin in WebStorm: I gave Junie tasks written as specs (for example the switch from revealed matchup % to hidden numbers, stacking partners that turn red within a round, the 20-second timer with timeout auto-play, the server-authoritative online match, and the ?seed=N test mode). Junie implemented the rule modules and their Vitest tests, and I reviewed its diffs in Air before accepting them. Keeping the rules as pure TypeScript with about 160 tests let me iterate on the design quickly after each playtest without breaking the online server.

Built With

Share this project:

Updates

Submission history