Star Battle
Play Star Battle — two stars per row, column and region, none touching. That rule alone throws away all but one arrangement in 9.4 million.
Click a cell to cycle blank → dot → star. Dots are just your own notes for cells you have ruled out. Two stars in every row, column and outlined region, and no two stars touching — not even at a corner. Everything runs in your browser; nothing is uploaded.
The no-touching rule throws away all but one arrangement in 9.4 million
Ignore the regions for a moment and ask only how many ways there are to put two stars in every row and column of a 10×10 grid. Counted exactly, there are 1,371,785,398,200. Now add the rule that no two stars may touch, diagonals included. What survives is 146,510 — one in 9,363,084.
That is the whole answer to how much work the rule does. It is not a filter that trims the edges of the problem; it is the rule that removes essentially all of it, and the regions then pick between the handful left standing.
| Board | Stars needed | Two per row and column | …and none touching |
|---|---|---|---|
| 4 × 4 | 8 | 90 | 0 |
| 5 × 5 | 10 | 2,040 | 0 |
| 6 × 6 | 12 | 67,950 | 0 |
| 7 × 7 | 14 | 3,110,940 | 0 |
| 8 × 8 | 16 | 187,530,840 | 2 |
| 9 × 9 | 18 | 14,398,171,200 | 664 |
| 10 × 10 | 20 | 1,371,785,398,200 | 146,510 |
Both columns can be checked against work published independently of this page. The middle column is the count of matrices with exactly two ones in every row and column, catalogued as A001499. The equivalent one-star column is Hertzsprung's problem, A002464 — the permutations with no two consecutive values next to each other. Our counts reproduce both, which is the reason to believe the figures beside them.
The tidy explanation is only half the story
There is a neat argument for why small boards are impossible. If no two stars touch, then any
2×2 block holds at most one, so the most stars an n×n board can hold is
⌈n/2⌉² — put them on every other row and column. A two-star board needs 2n.
Compare the two and the small boards fall over: 4, 5, 6 all need more
stars than fit.
| Board | Needs | Ceiling | Arrangements | |
|---|---|---|---|---|
| 4 × 4 | 8 | 4 | 0 | ceiling rules it out |
| 5 × 5 | 10 | 9 | 0 | ceiling rules it out |
| 6 × 6 | 12 | 9 | 0 | ceiling rules it out |
| 7 × 7 | 14 | 16 | 0 | ceiling allows it — but there are none |
| 8 × 8 | 16 | 16 | 2 | exactly at the ceiling |
And then the argument runs out. A 7×7 board needs 14 stars and has room for 16, so the ceiling raises no objection at all — yet there is not one valid arrangement. The bound is necessary and not sufficient, which is exactly why the counts above are counted rather than argued from the bound. The boards that are impossible are 4, 5, 6, 7; the ceiling only accounts for 4, 5, 6.
An 8×8 two-star puzzle has only one possible answer — whatever its regions
An 8×8 board needs 16 stars and has room for exactly 16, so it sits precisely at the limit. The count of arrangements is 2 — and those two are the same picture reflected, so up to rotation and reflection there is exactly one 8×8 two-star board:
That has a consequence worth pausing on. Every 8×8 two-star puzzle ever printed, whatever regions it draws, has that arrangement as its answer. The regions cannot change it; they can only make it easier or harder to find. It is the only size on the menu above where the puzzle is a formality. The board is also symmetric onto itself — its 2 distinct images under the eight rotations and reflections, rather than the full eight, mean it maps back to itself four ways.
The generator sees the same thing backwards
Puzzles here are made by drawing random regions and keeping the ones that admit exactly one arrangement. If 8×8 really has a single board, then any 8×8 partition that admits an arrangement at all should admit exactly one — and that is what happens:
| Board | Partitions tried | No answer | Exactly one | Several |
|---|---|---|---|---|
| 8 × 8 | 400 | 392 | 8 | 0 |
| 9 × 9 | 400 | 296 | 12 | 92 |
| 10 × 10 | 400 | 239 | 2 | 159 |
Not one 8×8 partition in 400 had more than one answer. At 10×10, where there are 146,510 arrangements to choose between, nearly every solvable partition admits several and only about one in two hundred pins a single one. That is why a 10×10 puzzle takes a moment to generate and an 8×8 appears instantly.
How to use
- Pick a board size and press New puzzle.
- Click a cell to cycle blank, dot, star. Dots are your own notes for cells you have ruled out.
- Place two stars in every row, every column and every outlined region.
- No two stars may touch, not even at a corner.
- Check tells you whether anything is in the wrong place.
Frequently asked questions
What are the rules of Star Battle?
Place a fixed number of stars — two, on every board here — in every row, every column and every outlined region. No two stars may touch, including diagonally. The regions are irregular, and that is what makes each puzzle different.
How much does the no-touching rule actually matter?
Almost all of it. There are 1,371,785,398,200 ways to put two stars in every row and column of a 10x10 grid. Only 146,510 of those have no two stars touching — one in about 9.4 million. The regions then choose between the survivors.
Why are small Star Battle boards impossible?
Because no two stars touch, any 2x2 block holds at most one, so an n by n board fits at most the ceiling of n/2, squared. A two-star board needs 2n stars, and boards of 4, 5 and 6 need more than fit. A 7x7 needs 14 and has room for 16, so the bound permits it — and there is still not one valid arrangement, which is why the counts here are counted rather than argued from the bound.
Is an 8x8 two-star puzzle any good?
Not really, and for a precise reason. There are exactly two 8x8 two-star arrangements and they are the same picture reflected, so up to rotation and reflection there is only one. Whatever regions an 8x8 puzzle draws, that is its answer — the regions cannot change it, only make it harder to spot.
Why is 10x10 the standard size?
Because it is the first size with real variety. The number of two-star arrangements runs 0, 0, 0, 0, 2, 664, 146510 for boards of 4 up to 10. At 8x8 there is one board up to symmetry; at 10x10 there are 146,510 for the regions to choose between.
Why does a 10x10 take a moment to generate?
Puzzles are built by drawing random regions and keeping the ones that admit exactly one arrangement. At 8x8 every solvable set of regions admits exactly one, so it is instant. At 10x10 nearly every solvable set admits several, and only about one in two hundred pins a single answer.
Is Star Battle the same as Doppelstern?
Doppelstern is the two-star version, which is what this tool generates. The puzzle also appears as Sternenschlacht and Two Not Touch. The one-star version exists but is much looser — random regions almost never pin a single answer at that density.
Does this send anything anywhere?
No. Puzzles are generated and solved entirely in your browser, and nothing is uploaded.
🔒 This tool runs entirely in your browser. Nothing you enter is uploaded, logged, or stored.