
A virus has slipped into a forgotten server through a dead port, and it’s spreading sector by sector. You are the antivirus: four half-deprecated defence processes, the Scanner, Firewall, Heuristic and Patch, against the Trojan, Rootkit, Worm and Bot. Packet Loss started as my A-Level Computer Science project in 2022 (as Phantom Network). In 2026 I rebuilt it into a finished game that runs in the browser.
- A minimax AI with alpha-beta pruning: it searches your possible replies before it moves, uses abilities, and is kept within a time budget so the browser never freezes
- One rules engine for everything: the game, the AI, the replays and online play all run the same tested C# rules
- Drag-and-drop tactics: move range in blue, attack range in red, enemy threat ranges on hover, damage previews, undo and keyboard or touch controls
- An ability for every unit: raise a firewall, heal with a hotfix, replicate the worm, overload a bot
- Three modes: delete every virus, protect the data packets, or survive ten cycles; plus corrupted sectors, fast lanes and fog of war
- Generated maps in four sizes, always fully connected and mirrored for fair two-player games
- A tutorial and a five-level campaign that tells the story
- Online play with lobby codes: share a five-letter code and play a friend, backed by a Cloudflare Worker and D1
- Action replay: after each match, a VHS-style rewind plays the whole fight back at full speed
The code is private. The browser version is the whole game: tutorial, campaign, skirmish, hot-seat and online.
Gallery

Attack phase: the red attack range, the damage preview (-4, leaving 5 health) and the unit’s ability hint

Action replay: the VHS rewind before the whole match plays back at full speed

The match stats screen, with the replay button

Online: share the five-letter code and a friend joins from their own browser

The tutorial and five-level campaign