cools maths gamesSurprise me

Unruly Black and White

Fill a grid with black and white so every line is balanced and no three matching squares sit in a row.

Unruly Black and White title screen
  • Works on mobile
Report a problem

Unruly Black and White is a shading puzzle that uses just two colors. A handful of squares are given, and the remaining ones begin gray. Your goal is to color every square black or white so that every line is evenly split and never shows three matching squares together.

How Unruly Black and White Works

A left click shades a gray square black, and a right click shades it white. Repeated clicks rotate through the remaining color and then gray again. Given squares wear a thin inner frame and stay locked.

Two rules apply everywhere. First, every line across and down needs equal amounts of both colors. Second, three matching squares may never sit side by side in a line. Any violation is drawn in red.

You win once no gray remains and nothing is red. The smallest preset is 8x8 Trivial and the largest is 14x14 Normal. Custom adds an option that forbids any two rows, or any two columns, from matching.

Your First Few Minutes

  1. Open the 8x8 Trivial preset.
  2. Find two matching squares side by side and color both ends the opposite color.
  3. Find two matching squares with one gap and fill the gap with the other color.
  4. Count a row: once four of eight squares are one color, fill the rest with the other.
  5. Keep alternating between lines across and lines down.

Controls for Unruly Black and White

Keyboard, mouse and touch controls for Unruly Black and White
To do thisKeyboardMouseTouch screen
Make a square black (then white, then empty)Arrow keys to the square, then EnterLeft-click the squareTap the square
Make a square white (then black, then empty)SpaceRight-click the squarePress and hold the square
Clear a squareBackspaceMiddle-click, or keep clicking until it is emptyKeep tapping until it is empty
Undo, redo, new puzzleU / R / NUndo move, Redo move and New game buttonsUndo move, Redo move and New game buttons

What It Trains

Unruly rewards spotting small patterns and counting carefully. You look for pairs and gaps, then check whether each line has reached its half. On bigger grids you think a step ahead, asking which empty square would cause three in a row if you guessed wrong.

Strategy Notes

  • Cap every pair. Two alike side by side means both ends take the other color.
  • Fill single gaps. A gap between two alike squares must be the opposite.
  • Count to half. When a line has its full share of one color, the rest is easy.
  • Test near-full lines. Ask which gray square would create a run of three if shaded wrong.
  • Alternate directions. A square placed in a row is also a clue for its column.

Good to Know

It plays with a mouse, keyboard or touch, where press and hold makes a square white. There is no timer and no sound. This edition by Lennard Sprong belongs to the Simon Tatham puzzle collection, and Adolfo Zanellati created the original puzzle idea.

Unruly Black and White questions and answers

What is the easiest preset?

The 8x8 Trivial grid is the gentlest start. It has plenty of givens, and the pair and gap rules solve most of it. Larger grids up to 14x14 Normal need more counting across whole rows and columns.

Why are the grid sizes always even?

Each line needs equal black and white counts. That can only work when the line length is even, so each side of the grid is an even number.

How do I empty a square again?

Press Backspace on the keyboard, or middle-click the square with a mouse. You can also keep clicking or tapping, since each square cycles through black, white and empty in turn.

What happens when I break a rule?

Problems are outlined in red, so three alike in a line or an overloaded line jumps out at once. Undo has no limit if you need to step back.

Games that use logic like Unruly Black and White

Different rules, same kind of thinking.

Try something from another shelf