A fast-moving, open source puzzle solver.

ShapeLogic is a small open source tool for designing and solving interlocking and packing puzzles. It started as a fork of BurrTools, the puzzle software created by Andreas Röver, and has since been rewritten from the ground up.

Built by AI

The new version was written almost entirely by Claude AI (Opus 5.5 and Fable 5.1).

A new frontend

The interface is built on a web framework inspired by the amazing work of Girish Sharma.

Rapidly evolving

The goal is a BurrTools-like tool that is developed quickly and gains new features and modes often.

News

ShapeLogic v2.1: Tilted Square puzzles and tray borders

Version 2.1 adds a new puzzle type, Tilted Square, tray borders and hand-placed pictures for sliding puzzles, and much faster preparation on large boards.

  • Tilted Square. File ▸ New ▸ Tilted Square makes a tray packing puzzle whose grid of squares is turned inside the tray. ShapeLogic finds the turned cells that lie wholly inside it, and Placements… lists every board the grid can give, with which ones take the pieces. Try Triple Play (IPP34) in the demo.
  • Tray borders. Draw a sliding puzzle's tray round its floor, with rounded or sharp corners, a color or a picture, a smooth, textured or wood grain finish, and a thin or thick rim.
  • Pictures placed by hand. Size and move a picture yourself, lay several on one piece, and snap their edges to the grid.
  • Faster preparation. Large boards of variable cells that the pieces fill prepare in seconds instead of minutes, and the Solver shows how far preparation has got.

Read more in Tilted Square. Many small bug fixes and improvements.

Release notes and downloads on GitHub

ShapeLogic v2.0: play sliding and stacking puzzles by hand

Version 2.0 adds a Play tab for sliding and stacking puzzles, pictures on sliding pieces and trays, and a much more stable solver for huge searches.

  • Play. The new Play tab lets you drag a sliding puzzle's pieces through the tray, or move a stacking puzzle's discs from rod to rod, Panex boards included. Moves are counted the way the Solver counts them, with Undo, Redo, playback and moves you can export and share, and Show Goal Image opens the goal in a window of its own.
  • Pictures on sliding pieces and trays. Put a PNG, JPEG, WebP or GIF picture on a piece or on the tray, cropped or stretched to fit, as on a printed tile puzzle. It turns and moves with the piece, and shows on the Play tab too.
  • A much more stable solver for huge searches. Sliding searches that run into the disk take far less space, saved files of 2 GB or more read back, and a saved search is never thrown away: a solve that can't carry on pauses and says why. A notice at start says what the cache folder holds.

Read more in Play Tab. Many small bug fixes and improvements.

Release notes and downloads on GitHub

ShapeLogic v1.9: a log of what happened, and bigger sliding boards

Version 1.9 keeps a log of what ShapeLogic did and what went wrong, and runs bigger sliding boards on the fast search.

  • A log of what happened. View ▸ Log File Manager… shows files opened and saved, solves started, paused and ended, and the errors, newest first. Its Pretty view is a table with the level in color and the event in a column of its own, the search highlights each match, and Export… saves it to send with a report of a problem.
  • Bigger sliding boards on the fast search. Boards that stopped at the slower search's memory limit now run on the fast one, with every core, the disk and the Performance Analysis.
  • A clean start after a damaged search. A saved sliding search that can't be read back is dropped whole, instead of leaving a part that made the solve find a longer path.

Read more in Getting started. Many small bug fixes and improvements.

Release notes and downloads on GitHub

ShapeLogic v1.8.4: watch the search, and manage what it leaves on the disk

Notes for release v1.8:

Version 1.8 shows a running search in the 3D view, lists the files that solves leave on the disk, and makes stopping, pausing and clearing a solve clearer.

  • Live preview. While a solve runs, the 3D view shows the arrangements a sliding or stacking search is looking at, or the pieces of a puzzle being taken apart, a few times a second.
  • Manage cache and autosave files. View ▸ Manage Cache and Autosave Files… lists paused searches and crash recovery copies by puzzle, with their size and files, and deletes them to free the space.
  • Abort and Reset. Abort throws away a running or paused solve; Reset clears a finished one, and Undo brings it back.
  • Searches share their memory. Sliding and stacking searches running at once share the search memory instead of each taking all of it.
  • Clearer pausing. The Solver says what a pause is waiting for, and the crash recovery copy now covers sliding solves too.

Problems can be added while a solve runs, and the problems list says how each one's solve stands. Read more in The Solver tab. Many small bug fixes and improvements.

Notes for minor release v1.8.1:

Optimized paths solve a sliding board of blocks in seconds instead of hours: when the board divides into a grid of cells that its blocks fill, the pieces stop only on that grid. Solve asks first, or the new Automatically use optimized paths option uses it every time. A small piece in an empty cell of the grid is now searched once rather than once for each place it could stop, which finds the same fewest moves in about half the time. While a sliding solve runs, a Performance Analysis times each move and estimates how long the moves ahead will take, up to 100 moves deep.

Notes for minor release v1.8.2:

A sliding solve with Allow Nested Slides now searches back from the goal as well as forward from the start, until the two meet, whenever every piece has a goal position: a board that took two and a half hours takes 19 seconds. With optimized paths, larger boards of blocks now run in the fast search. Continue on a solve paused in v1.8.1 or earlier asks whether to Solve Again with the faster search, and Solve after a pause now starts afresh. On the Puzzle tab the pieces of a problem are listed in the shapes' order, and the collapsed problems card shows a chip for each problem.

Notes for minor release v1.8.3:

The crash recovery copy of a sliding solve is now written at the end of the level the search is on, so a long search is never held up by it: before, each copy cut the level short to be searched again, and a deep search could stop getting any further. A search paused in v1.8.2 carries on from where it stopped. File ▸ Save during a sliding solve saves at once. A sliding or Panex problem is solved in one place at a time: a second solve of it in another window, or in shapelogic_cli, is refused with a message instead of the two overwriting each other's search files. The Performance Analysis now estimates the next eleven rows past any depth instead of stopping at 100 moves, and the Disk space settings move in finer steps up to 5 TB.

Notes for minor release v1.8.4:

File ▸ New Window opens another window with its own puzzle and solver, so you can edit one puzzle while another solves; the new Window menu lists them, and each keeps its own crash recovery copy. A file already open in one window opens (read-only) in the next, where Save works as Save As, so two windows never overwrite each other's work. Read more in Getting started. Puzzles are taken apart faster, on every thread once the search is done, and the Solver's Display ▸ Labels can show each piece's name, its label from the Shapes tab, or both.

Release notes and downloads on GitHub

ShapeLogic v1.7.2: two new grids, disassembly on more grids, and faster solving

Notes for release v1.7:

Version 1.7 adds the Hexagonal Prism and Cairo Prism grids, takes apart puzzles on four more grids, draws pieces with even bevels, and keeps every core busy to the end of a solve.

  • Two new grids. File ▸ New makes puzzles from hexagonal prisms or from prisms on the Cairo pentagonal tiling.
  • Disassembly on more grids. Rhombic, tetra-octa, hexagonal prism and Cairo prism puzzles are now taken apart as well as assembled.
  • Uniform bevels. A new style draws each piece as one solid with every edge bevelled to the same width, in the view and in the STL export.
  • Faster solving. Puzzles with many identical pieces solve 4 to 6 times faster, and idle threads take over work from busy ones, so a paused solve loses nothing.
  • Crash recovery, always on. A rescue copy of a running solve replaces Autosave, and your puzzle's file is written only when you save it.
  • Search Options defaults. Settings ▸ Search Options sets what a new problem's search starts with, and every setting shows its default.

Sliding puzzles show each piece's name on Start and Goal, and the update dialog's Details now shows what is new. Read more in Hexagonal Prism and Cairo Prism. Many small bug fixes and improvements.

Notes for minor release v1.7.1:

Settings ▸ General ▸ Cache folder chooses where the solver keeps its cache data, the saved sliding and stacking searches that can take a lot of disk space, and offers to move what is already there or delete it and start clean. By default both kinds now share ShapeLogic’s application data folder, and saved searches in the old places move there at the next start.

Notes for minor release v1.7.2:

File ▸ Export ▸ STL exports several shapes at once, a file each into a folder. File ▸ Export ▸ Puzzlecad chooses pieces or a problem’s pieces with every copy, and now works for sliding puzzles, with the board as a tray and a lip around it. Problems that share a sliding board each have their own starts and goals.

Release notes and downloads on GitHub

ShapeLogic v1.6: sliding puzzles with color restrictions and bigger searches

Version 1.6 lets you make a sliding puzzle's problems yourself, brings color restrictions and turning pieces to sliding puzzles, and lets the Sliding Puzzle Solver search much further, pausing and carrying on as it goes.

  • Problems as on other puzzles. Make, copy and delete a sliding puzzle's problems, choose a board as each result, and clone a board's start to its goal or back.
  • Color restrictions on sliding puzzles. The start and goal marks no longer use the cell colors, so restriction colors and the color rules work as on every grid, and up to 255 pieces can have a start or goal.
  • Pieces that can turn. Allow any orientation for unplaced pieces and Include mirrored orientations let a piece with no start or goal be placed turned or mirrored.
  • Bigger sliding searches. The solver keeps its memory use level and writes the rest to disk, and searches back from the goal too when it is one arrangement.
  • Pause and carry on. Pause saves a sliding search and Continue carries it on, also after it fills its disk space.

The guide has new pages for the code base's testing suites and wider pages on large windows, and the site has a new research section. Read more in Sliding. Many small bug fixes and improvements.

Release notes and downloads on GitHub

ShapeLogic v1.5: assemblies kept, an Export menu, and a new top bar

Version 1.5 can keep the assemblies that don't come apart, puts exporting on the Solver tab, gives sliding puzzles a Boards list and a side-by-side Start and Goal, and brings a new top bar.

  • Keep the assemblies that don't come apart. The Always show Assemblies search option lists them after the disassemblies, and the solutions list says what each group holds.
  • An Export menu on the Solver tab. The Solutions card's Export menu exports the shown solution's pieces as STL, and everything in File ▸ Export.
  • Clear a problem's result. Change… on the Puzzle tab ends with Clear Result, which can be undone.
  • Sliding puzzles. Boards have their own Boards list on the Shapes tab, and Focus 2D editor on the Puzzle tab shows Start and Goal side by side.
  • A new top bar. It grows with the font size, and the new Top bar theme setting in Settings ▸ General chooses Colorful, with the axis colors behind the name and on the tabs, or Boring.

Free Spin turns the view smoothly, the text is a size larger by default, and the side cards grow with a wide window. Read more in Getting started. Many small bug fixes and improvements.

Release notes and downloads on GitHub

ShapeLogic v1.4: one sliding puzzle solver, and new look settings

Version 1.4 gives sliding puzzles a single solver with no limit on the positions it looks at, lets each copy of a piece have its own start and goal, and adds settings for how the app looks.

  • One sliding puzzle solver. The Sliding Puzzle Solver always finds the fewest moves or proves there is no solution, and uses every core. The Fast and Deep solvers are gone, and puzzles saved with them open as before.
  • Several copies of a sliding piece. Each copy can have its own start and goal. A copy without a start can start anywhere, and one without a goal can end anywhere.
  • Boards and pieces side by side. On the Puzzle tab the START and GOAL boards sit at the top of the 3D view with the pieces under them, and starts and goals are placed on the new Start and goal card. Pieces are larger and closer together, and zooming makes every piece larger or smaller.
  • Board colors that follow the theme. Sliding boards are dark gray in the Light theme and light gray in the Dark theme. Settings ▸ Grid editor sets the color for each theme.
  • New look settings. Font size, the location of the main tab bar, Compact density and sidebar widths are in Settings ▸ General, and View ▸ Color Theme switches between Light, Dark and System.
  • Memory and disk for big searches. Settings ▸ Solver sets how much memory and disk space a sliding or stacking search may use.

The voxel editor can show the layer below or above faintly, + New Piece and + New Board take the size of the last one, and About ShapeLogic shows what it is built with. Many small bug fixes and improvements.

Release notes and downloads on GitHub

ShapeLogic v1.3: tidier sliding puzzles and new settings

Version 1.3 keeps the boards of a sliding puzzle in order, shows piece names in the Solver and adds settings for the grid editor and the solver.

  • Tidier sliding puzzles. Boards (start and goal positions) now always stay at the top of the shapes list, labeled B1, B2 and so on, with the pieces below them as S1, S2 and so on. You can name each board, and the name shows in the Puzzle tab’s problems list.
  • New Settings pages. A Grid editor page holds the grid plane and the size of a new shape. Performance is now called Solver and adds a Default solver type, Complete or Fast.
  • Piece names in the Solver. The Piece display chips show each piece’s name, and you can draw each piece’s label on it in the 3D view.
  • Easier voxel editing. + New makes a shape the size of the selected one, you can type a size straight into the X, Y and Z boxes, and hovering over a voxel always highlights it in the 3D view.

Open and Save now start in the folder you used last, and Enable High Memory is on by default for sliding and stacking puzzles. Many small bug fixes and improvements.

Updated to v1.3.1. ShapeLogic now tells you when a new version is out, and Check for Updates… checks at any time. Time used counts every run of a solve, including after Continue, and times are shown in words. Sliding puzzles get a new shape size of their own, and About shows the version you installed.

The Grid editor settings · Release notes and downloads on GitHub

ShapeLogic v1.2: vertical moves are an option, and easier 3D editing

Version 1.2 makes sliding puzzles with several layers faster to solve, and makes editing shapes in the 3D view easier.

  • Vertical moves are now an option. On a tray with more than one layer, pieces now stay in their own layer unless you turn on Allow Vertical Moves in the Solver tab. Most multi-layer puzzles now solve much faster. Turn the option on for puzzles where a piece must be lifted over the others.
  • Easier 3D editing. In 3D edit mode, clicking different parts of a voxel’s face adds, changes or deletes it, and you can start drawing an empty shape right in the 3D view.
  • Piece weights are in the Puzzle tab. The W− and W+ buttons are now in the Groups table, next to each piece.

The user guide has a new Piece Weights page and a Code Base section for developers. Many small bug fixes and improvements.

How piece weights work · Release notes and downloads on GitHub

ShapeLogic v1.1: sliding puzzles with more than one layer

In sliding puzzles, pieces and trays can now have more than one layer. Before, a sliding shape was always flat, and a file with a deeper one was flattened when it opened. Now the layers are kept, and the Z size can be changed like on any other puzzle.

  • Pieces can move up and down. With Allow Vertical Moves on, a piece on a tray with more than one layer can be lifted out of a box, carried over the other pieces and put down somewhere else. The solver finds these moves, and the player shows them.
  • Placing pieces by layer. Show a layer of the tray and click: the piece sits as low as it can while still fitting.
  • Flat puzzles are unchanged. Puzzles with one-layer trays are solved exactly as before, with the same answers.

The voxel editor’s color area is also reworked, with clear Shape color and Restriction color labels, direct add, edit and remove buttons, and a built-in color picker. Spheres, rhombic and tetra-octa puzzles now default to Assemble Only, and the last shape in a puzzle can be deleted.

How multi-layer trays work · Release notes and downloads on GitHub

ShapeLogic v1.0: the initial release

Today is the first public release of ShapeLogic, a designer and solver for interlocking, burr, sliding and stacking puzzles. It is a complete rewrite, with a new solver core, a new interface and a new documentation site.

ShapeLogic is based on BurrTools, and its algorithms are ported from it. It reads and writes the same .xmpuzzle files. It is not meant to replace BurrTools.

  • One interface everywhere. Built with web technologies and run in Electron, it behaves the same on macOS, Windows and Linux.
  • A fast solver. A C++23 engine runs as a separate process, so the interface stays responsive. Choose Complete (exhaustive search) or Fast (Andrew Crowell’s take-apart).
  • New puzzle types. Sliding puzzles, stacking puzzles and Panex puzzles. Long Panex searches can be paused and resumed.
  • Import and export. Import PuzzleSolver3D and Puzzlecad files, export to Puzzlecad, and export STL meshes for 3D printing. Cube-grid puzzles can be converted to rhombic and tetra-octa grids.
  • Well tested. Hundreds of unit and contract tests, end-to-end interface tests, and a regression suite that checks the solver’s answers on over 100 puzzles against answers recorded from the original.

Downloads are available for macOS (Apple silicon and Intel), Windows (64-bit) and Linux (x64 and ARM64). The macOS app is signed and notarised. The Windows installer is not code-signed yet, so SmartScreen may warn you.

Read the full release notes on GitHub