The objective of the Tectonic brain puzzle is to fill each group with numbers 1 through n, where n is the size of the group. Each number should only occur once per group. Each number should not border another cell with the same number (not even diagonally). There are no other restrictions. Numbers offset at 1.

This demo hooks up a finite domain solver to search for a solution and present it to you for a given puzzle. If it doesn't give you a solution there probably isn't one (or there's a bug).

See blog post for more details: pvdz.ee/weblog/380. By Peter van der Zee, August 2016, © pvdz.ee.

Width and height set the width and height of the puzzle. You can clear the values of the grouping/values. The solve button will (re-)solve with current inputs. You can get as many solutions as you want, if there are more than one, by increasing the max.

W H x

**Click on a cell to change it.**
Create groups by assigning their ids to each cell. Press up/down key for quick inc/dec.
Assign required values for the puzzle the same way. They are basically the initial values for the puzzle.

This is the resulting puzzle (grouping result and actual puzzle)...

These are the solutions, if anything, trying to solve the puzzle. If there is no solution, there probably isn't one. Or at least that's the idea ;)