Menu

Building a Zero-Backend 3x3 & 5x5 Adjacency Synergy Graph + URL Codec for 9 Kings Version 1.0
πŸ“°

Building a Zero-Backend 3x3 & 5x5 Adjacency Synergy Graph + URL Codec for 9 Kings Version 1.0

DEV Community: nextjsΒ·ε•ŠδΌŸΒ·2 days ago
#oAjnQA9q
#devtonextjs#devto#dev#kings#builds
Long article (314 words) β€” no AI summary yet.
Reading 0:00
15s threshold

With 9 Kings Version 1.0 launching in November 2026 and unlocking cross-king custom decks , planning optimal 3Γ—3 core plots (and late-game 5Γ—5 expansions) past Year 33 turned into a fun graph-optimization problem.

Instead of tracking builds in static spreadsheets, I built NineKingsLab β€” a 100% free, zero-login interactive 3Γ—3 / 5Γ—5 build planner and synergy calculator in Next.js 15 + TypeScript.

1. Modeling Orthogonal & 8-Neighbor Synergy Graphs

Buildings like Beacon , Blacksmith , Library , Amplifier , Forest , and Vault buff either orthogonal (4-way) or full adjacent (8-way) tiles, scaling with plot level (1–3) and enchantment stacks:

const DIRS_8 = [ [ - 1 , - 1 ] , [ - 1 , 0 ] , [ - 1 , 1 ] , [ 0 , - 1 ] , [ 0 , 1 ] , [ 1 , - 1 ] , [ 1 , 0 ] , [ 1 , 1 ] , ] ;

// For each buff plot, evaluate outgoing edges to adjacent combat/economy plots // and flag layout optimization hints (e.g., moving Beacon to center tile (2,2)).

Enter fullscreen mode

Exit fullscreen mode

2.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.