How Star Battle works
Star Battle is a logic puzzle with a single kind of mark: a star. Every row, every column and every region of the grid holds the same number of them, and no two may touch. This page explains the rules, where the puzzle comes from, the techniques that solve it and how the puzzles on PictorX are made.
The rules
A Star Battle grid is a square of n by n cells, split into n regions with thick borders. You place stars so that every row, every column and every region holds the same number of stars, given with the puzzle: one star on small grids, two or more on larger ones. Stars may not touch each other, not side by side and not at a corner. Every cell is either a star or empty, and a good puzzle has exactly one solution.
Where it comes from
Star Battle was invented by Hans Eendebak. It appeared at the World Puzzle Championship in 2003, and since then it has become a common puzzle type in contests, magazines and apps. The two-star version is also published as Two Not Touch. With one star in every row and column, the puzzle is a cousin of the eight queens problem, with regions instead of diagonals.
First steps
Start with the cells that are settled at once. Around every star, the eight neighbouring cells are empty. A row, column or region that has all its stars rules out every other cell in it. And when a region has only as many free cells left as it needs stars, they are all stars: a region of one cell is a star straight away. Marking empty cells with a dot keeps track of what is ruled out.
No room and counting
Harder puzzles need two more ideas. The first is no room: if a star in a cell would rule out every free cell of some region, row or column, that cell is empty. The second is counting: if two regions lie entirely within the same two rows, those rows' stars must all go into those two regions, so every other cell of the two rows is empty. The same works with columns, and with any number of regions.
How the puzzles are made
The generator first places a valid set of stars at random, row by row. It then grows a region around each star, or each pair of stars on the two-star board, by a random flood fill. A solver looks for a second solution; while one exists, a cell that holds a star only in that other solution moves to a neighbouring region, which breaks the other solution and keeps the real one. A logic solver then grades the puzzle by the techniques it needs.
Frequently asked questions
Why may stars not touch diagonally?
That is what makes the puzzle work. With only the row, column and region rules, many grids would have lots of solutions. Because stars may not touch, not even at a corner, each star rules out a block of cells around it, and that is where most of the logic comes from.
What is the dot for?
A dot marks a cell you know is empty. It is not part of the answer, but it keeps track of your reasoning: once most cells of a row are dotted, the last free cells stand out.
Is Star Battle the same as Two Not Touch?
Two Not Touch is a name for the two-star version, with two stars in every row, column and region. The rules are the same as in Star Battle.
How do I get better at Star Battle?
Look for small regions and for regions squeezed into one or two rows or columns. They give away their stars, or rule out cells in the rows they fill. Counting regions against rows is the technique that cracks most hard puzzles.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
Play Star Battle