Map Owned: 1.6% (Peak: 1.6%) Eliminations: 0 Rivals Cut Rank: #1 of 8
🗺️ Your Map Territory 1.6% 90 / 5,600 Tiles · Best: 1.6%
⚡ Turbo Boost Energy
100% Ready · Hold [Space / Shift]
🏆 Arena Score & Cuts 180 PTS 0 Trail Cuts · 0 Loops Closed
🎮 Quick Actions
Your browser supports HTML5 Canvas to render the 60FPS Paper Territory .io arena, flood-fill polygons, and minimap radar.
👑 Live Arena Leaderboard
🤖 AI Rival Speed & Volume

The Mathematics & Strategy of Territory Capture (.io) Games: Exterior BFS Flood-Fill & Trail Interception

Since the rise of classic arcade territory-claiming classics like Qix (1981) and modern multiplayer hits like Paper.io 2 and Splix.io, the core gameplay loop of **risk-versus-reward spatial enclosure** has remained one of the most engaging mechanics in browser gaming. Every tile you step onto outside your home turf increases your potential polygon area quadratically—while simultaneously lengthening the exposed "Achilles' heel" trail that any rival can sever with a single touch.

How to Play & Master Keyboard, Mouse, and Touch Controls

  1. Steer Your Glider (`WASD`, `Arrow Keys`, or `Mouse / Touch Pointer`): Move your mouse cursor or drag your finger anywhere inside the arena and your glider will smoothly steer toward your pointer, or tap `W/A/S/D` and `Arrow Keys` for crisp 4-way grid turns.
  2. Close the Loop to Flood-Fill Territory: Leave your colored base to draw a glowing trail, then loop back into any tile of your own territory. Both your trail and **every empty or enemy tile completely surrounded by your territory** will instantly flood-fill into your faction color!
  3. Sever Enemy Trails for Instant Eliminations: Watch for AI bots venturing far from their bases. Cross their translucent neon trail at any point before they return home to eliminate them in a shower of pixels and claim **+250 Elimination Points**.
  4. Switch Camera View (`🎥 Camera: Follow Glider vs. Full Arena Overview [C]`): Toggle between the close-up tactical Follow Camera (with a top-right radar minimap) and the zoomed-out Full Arena Overview to watch all 8 factions battle across the entire 5,600-tile grid at once.

Exterior-Complement BFS Polygon Flood-Fill & Isoperimetric Capture Equations

1. O(W × H) Exterior-Complement Breadth-First Search (BFS) Polygon Capture Algorithm on Grid G[80 × 70]:
• Step A: Convert all active trail tiles T_player into Owned Territory (G[r][c] = Player_ID)
• Step B: Flood-fill from padded exterior boundary (-1 .. W, -1 .. H) through all cells where G[r][c] ≠ Player_ID
• Step C: Any cell (r, c) not reached by the exterior flood is strictly enclosed → Set G[r][c] = Player_ID!

2. Isoperimetric Risk-Reward Ratio (Enclosed Area A vs. Exposed Trail Length L_trail):
A_max = L_trail² ÷ (4 · π) [Using existing home borders as 1 or 2 sides of your rectangle doubles A_max per unit risk!]

Complete Reference Chart: Arena Factions, Bot Personalities & Scoring

Arena Event / Maneuver Point / Territory Reward Risk Level Tactical Execution Tip
1. Perimeter Ribbon Capture +2 PTS per Tile Claimed VERY LOW Skim 3–4 tiles outside your border and duck back in every 2 seconds
2. Corner Wall Anchor +150 to +400 Tiles LOW Capture one of the 4 map corners so two sides are permanently safe
3. Enemy Trail Cut (Elimination) +250 PTS + Clears Enemy Base MEDIUM Save 50%+ Turbo Boost (`[Space]`) to ambush bots mid-loop
4. Doughnut Super-Enclosure +500 to +1,500 PTS Bonus! HIGH Wrap completely around a rival's entire base to swallow it whole

Keep playing zero-install 60–120 FPS browser games in the Gemsmakers Gaming Hub:

Frequently Asked Questions

1. How do you capture large territories safely in Paper Territory .io?
When you leave your colored home territory, your glider draws an exposed neon trail behind it. Returning to any tile of your existing territory closes the loop, instantly converting your trail and every empty or enemy tile completely enclosed inside the loop into your territory. For maximum safety, carve wide, shallow rectangular ribbons along your existing border ("perimeter hugging") rather than venturing deep into the center of the map where rivals can easily cross your long tail.
2. How does the polygon flood-fill algorithm work when you close a loop?
Paper Territory .io uses an O(N) Exterior-Complement Breadth-First Search (BFS) on an 80x70 grid (5,600 tiles). The moment your glider re-enters your home territory, the engine first converts all tiles in your active trail into owned territory. It then floods inward from an imaginary border around the outside of the map to mark every tile reachable from the exterior without crossing your territory. Any unreached interior pocket is guaranteed to be enclosed by your loop and is instantly filled with your color!
3. What happens when you cross an opponent's trail or your own trail?
Crossing any exposed enemy trail immediately eliminates that rival in a burst of neon pixels, awards you +250 elimination points, and clears all of their territory from the map so you can claim it. However, if an opponent crosses your exposed trail—or if you accidentally turn back and cross your own active trail while outside your home zone (unless Self-Tail Safe mode is enabled)—you are eliminated.
4. How do you use the Turbo Boost without running out of energy?
Hold Spacebar, Shift, or the Boost button on mobile to increase your glider speed by 45%. Boost energy drains while active and recharges automatically whenever you glide inside your own safe home territory. Save your boost for two critical moments: sprinting back to your home border when an enemy approaches your exposed tail, or dashing across a rival's long trail to eliminate them.