← Back to news

Show HN: Gerrymandle - Daily puzzle game where you redraw electoral districts

gerrymandle.cc|50 points|19 comments|by realmofthemad|Jun 18, 2026

Introducing Gerrymandle: A Daily Puzzle on Electoral Engineering

Gerrymandle Game Concept

Gerrymandle is a daily challenge that puts you in the shoes of a political strategist. Your objective is simple yet cynical: redraw the electoral boundaries to ensure your party secures a victory.

🛠️ Technical Implementation Details

To ensure a seamless user experience, the developers optimized the "first paint" process. By using a specific pre-paint color, they avoid the jarring default white flash during the bundle parse and lazy loading of game chunks.

  • Theme Color: The hex code #47aba9 is used as the prePaintColor.
  • CSS Logic: The water-blue aesthetic is driven by the .body.game-sheep rule, which activates once React mounts.
  • Validation: The file sheep/prePaint.test.ts ensures these colors remain synchronized.
// Example of the synchronization logic
const theme = {
  prePaintColor: "#47aba9",
  activeClass: "game-sheep"
};

🎮 How to Play

Your goal is to manipulate the map to win the most regions.

Gameplay Checklist:

  • Select adjacent tiles to form a district.
  • Ensure every district is a single, contiguous shape (islands are forbidden).
  • Account for empty land tiles that contain no houses.
  • Secure a plurality of houses in a district to win it.
  • Submit your map once you've maximized your party's seat count.

The Path to Victory


📚 The Science of Gerrymandering

Gerrymandering is the intentional manipulation of electoral district boundaries to provide an unfair advantage to a specific political party.

The core strategy relies on two primary techniques: Packing and Cracking.

TechniqueMethodGoal
PackingConcentrating opponents into a few "super-districts."Waste opponent votes on landslide margins.
CrackingSpreading remaining opponents across multiple districts.Ensure they never reach a majority in any area.

Mathematically, this allows a party to achieve a result where: Total Votes<50%    Total Seats>50%\text{Total Votes} < 50\% \implies \text{Total Seats} > 50\%


📜 History and Modern Evolution

The term originates from 1812, when Massachusetts Governor Elbridge Gerry signed off on a district so distorted it looked like a salamander, leading a newspaper to coin the term "Gerry-mander."

However, the practice is even older; for instance, Patrick Henry once attempted to manipulate Virginia's first congressional map specifically to block James Madison from entering Congress.

Then vs. Now:

  • Past: Hand-drawn, crude shapes.
  • Present: High-powered algorithms and surgical precision.

When maps are "guaranteed," the general election becomes a formality. The real contest shifts to the primaries, meaning incumbents only need to satisfy their party's most extreme base to keep their seats.

Case Study: North Carolina

  • 2022: Courts invalidated a partisan map \rightarrow Result: An even split of Republicans and Democrats.
  • 2024: Republicans redrew the map \rightarrow Result: 10 out of 14 seats won, despite the state remaining closely divided.

⚖️ Legal and Political Landscape

Because residential patterns often cluster by demographic, targeting specific neighborhoods is the most effective way to "tip" a district.

The Judicial Shift:

  1. 2019: The Supreme Court ruled it lacked the authority to police partisan maps, despite acknowledging that gerrymandering contradicts democratic ideals.
  2. 2026: A subsequent ruling raised the bar further, requiring proof of discriminatory intent rather than just discriminatory effect.

Redistricting only happens once per decade after the census. In reality, over 25% of all congressional seats have been redrawn mid-decade since 2020. A notable example is California, which suspended its independent redistricting commission to redraw lines in response to these trends.