Slide one row in SlideScramble and every tile in it moves. Slide a column and the same thing happens vertically. Can you use those board-spanning moves to rearrange just four neighboring tiles and put everything else back?
The Portable Lens grew out of playing with that question. Four shapes on graph paper made it possible to follow the same tiles as they moved. The sketches captured a pair of local swaps and a family of smaller shuffles. A Python simulation later made it possible to replay each formula and check every cell, even when the lens straddled the edge of the board.
Four tiles on a wraparound board
In SlideScramble, a move rotates a complete row left or right, or a complete column up or down. A tile that leaves one edge comes back at the opposite edge on the same line. Every cell is occupied throughout play. A blank cell in a lens diagram keeps its original tile.
Start with a 2×2 block. Call its upper-left tile ○ (circle), its upper-right tile ☆ (star), its lower-left tile △ (triangle), and its lower-right tile □ (square). The names travel with the tiles.




Apply the row and column swaps in either order to cross the lens. When using the formulas, assign the shapes afresh by position before the second swap. Apply both swaps again to uncross it.
Two local swaps, one eight-move pattern
Read a formula from left to right. △↑ means find the triangle where it is now, then rotate its entire column up one cell. A left or right arrow selects the tile’s current row. Locate the next tile after making the move. Two identical tokens in a row, such as △→ △→, specify two successive one-cell steps.
Try the Up left column swap. The first move sends △ up one cell. The second sends the column containing □ up one cell. The third shifts □’s current row left. The lines being rotated can carry tiles well outside the lens, but after the eighth step the left and right lens columns have traded places and the rest of the board is restored. The row swap works on the top and bottom pairs in the same way.
All eight swap formulas have the shape sequence X Y Y Y X X X Z. Let a be the first arrow and b the third. The arrow sequence is a a b −a −b −b −a b, where a minus sign means the opposite arrow. For Up left, X is △, Y is □, Z is ☆, a is ↑ and b is ←. Once you recognize the pattern, each orientation comes down to choosing the shapes and the two starting directions.
The first shapes in the column-swap list are △, ○, □, ☆. The row-swap list starts ☆, □, ○, △ in exactly the reverse order. The symmetry is in how the formulas are listed.
| Orientation | Read left to right |
|---|---|
| Up left | △↑ □↑ □← □↓ △→ △→ △↓ ☆← |
| Down left | ○↓ ☆↓ ☆← ☆↑ ○→ ○→ ○↑ □← |
| Up right | □↑ △↑ △→ △↓ □← □← □↓ ○→ |
| Down right | ☆↓ ○↓ ○→ ○↑ ☆← ☆← ☆↑ △→ |
| Orientation | Read left to right |
|---|---|
| Left up | ☆← □← □↑ □→ ☆↓ ☆↓ ☆→ △↑ |
| Left down | □← ☆← ☆↓ ☆→ □↑ □↑ □→ ○↓ |
| Right up | ○→ △→ △↑ △← ○↓ ○↓ ○← ☆↑ |
| Right down | △→ ○→ ○↓ ○← △↑ △↑ △← □↓ |
The Shuffle Atlas
The Shuffle Atlas contains eight four-move entry configurations. The vertical and horizontal rules divide it into four quadrants. The top half shows clockwise three-position rotations, and the bottom half shows counterclockwise rotations. The blank cells face inward toward the center of each half, and inverse rotations are aligned directly above and below one another. Every entry cycles three tiles while keeping the fourth at its original position.

Clockwise describes the three moving lens positions, not rotation of the entire 2×2 board. For example, Lens.CircleSquare.A moves the upper-left tile to the upper-right, the upper-right to the lower-right, and the lower-right to the upper-left. Lens.SquareCircle.A reverses that cycle.
The shuffle as a three-position rotation
Every Shuffle Atlas entry cycles three positions while preserving the fourth. Applying the same operation three times restores the original arrangement.
A shuffle therefore has a period of three, and applying it twice produces its inverse. The matching-blank entry in the atlas provides that inverse directly, without repeating the original operation.
For example, Lens.CircleSquare.A rotates the three positions surrounding its fixed bottom-left cell. With shapes rebound by position before each application, three successive executions return the entire board to its starting state.
Finding an inverse: Match the position of the blank cell. The inverse lies directly above or below and has the same A or B suffix. For example, Lens.CircleSquare.A is inverted by Lens.SquareCircle.A; Lens.StarTriangle.B by Lens.TriangleStar.B. The two operations are opposite three-position rotations. Rebind the four shape labels by their current positions before applying the next lens formula.
Compare Lens.CircleSquare.A (○→ □↑ □← ○↓) with Lens.CircleSquare.B (○↓ □← □↑ ○→). Both use ○ □ □ ○. Read A’s arrows from the end to the beginning and you get B’s arrows. The same relationship holds in every quadrant, so one shape sequence and one arrow order give you both variants. This within-family A/B symmetry is distinct from the vertical inverse pairing. The variants produce different arrangements. To undo a recording, you would instead reverse the move order, flip each arrow and update the recorded drag starts.
Read the eight atlas entries as text
Results show the top row, then the bottom row. A dot (·) means the original tile stays in that cell.
| Entry | Moves | Result |
|---|---|---|
Lens.TriangleStar.A |
△↑ ☆← ☆↓ △→ |
△ ○ / ☆ · |
Lens.TriangleStar.B |
△→ ☆↓ ☆← △↑ |
· □ / ☆ △ |
| Entry | Moves | Result |
|---|---|---|
Lens.CircleSquare.A |
○→ □↑ □← ○↓ |
□ ○ / · ☆ |
Lens.CircleSquare.B |
○↓ □← □↑ ○→ |
□ · / ○ △ |
| Entry | Moves | Result |
|---|---|---|
Lens.StarTriangle.A |
☆← △↑ △→ ☆↓ |
☆ △ / ○ · |
Lens.StarTriangle.B |
☆↓ △→ △↑ ☆← |
· △ / □ ☆ |
| Entry | Moves | Result |
|---|---|---|
Lens.SquareCircle.A |
□↑ ○→ ○↓ □← |
☆ □ / · ○ |
Lens.SquareCircle.B |
□← ○↓ ○→ □↑ |
△ · / □ ○ |
Take the lens to another part of the board
On paper, write each shape beside the value you see in its starting cell. For each arrow, find that written value on the board and rotate the row or column where it now appears. To move the technique elsewhere, make a fresh binding for the new 2×2 block.
Here is the guide’s centered 4×4 fixture. Each pair printed in the board is a tile’s home label. The column and row headers give its current position, counted from one at the upper left. For example, the ○ tile has home label (1,1) and starts at current position (2,2).
| Row | Col 1 | Col 2 | Col 3 | Col 4 |
|---|---|---|---|---|
| 1 | (4,4) | (1,4) | (2,4) | (3,4) |
| 2 | (4,1) | ○ (1,1) | ☆ (2,1) | (3,1) |
| 3 | (4,2) | △ (1,2) | □ (2,2) | (3,2) |
| 4 | (4,3) | (1,3) | (2,3) | (3,3) |
Write down ○ (1,1), ☆ (2,1), △ (1,2), □ (2,2). Try Lens.CircleSquare.A. Its first move, ○→, sends row 2 right and carries both ○ and ☆. The second move, □↑, selects column 3, which now contains both □ and ○. Finish the last two moves and compare the center with the upper-right A diagram. Then check that the surrounding twelve cells match the starting board.
What the verifier checked
The Python verifier locates each named tile before each move, rotates its current line by one cell, and compares the resulting board with the expected permutation. It checks four column swaps, four row swaps, and eight atlas entries on the centered fixture. It also checks the common swap pattern and all four A/B directional relationships.
All 16 formulas passed at every 2×2 placement on 3×3, 4×4, 5×5, 5×3 and 7×6 boards, for 1,712 placement and board-size checks in addition to the centered fixture. That includes lenses crossing one or both wraparound boundaries. Each check compares the lens result and confirms that every other cell returns to its starting value. The tests establish the recorded outcomes on those boards. Whether the atlas exhausts the possible entry configurations up to symmetry remains open.
Run python3 verify_portable_lens.py from the SlideScramble source directory. Python verifier · Portable Lens guide
Solving, parity and recorded challenges
When much of the picture is already assembled, a local swap can move two pairs without disturbing the surrounding work at the end of the sequence. The atlas offers a different choice: cycle three tiles while holding the fourth fixed. Look at which tiles need to move and which must return to their present cells before choosing a formula.
Both lens swaps preserve permutation parity because each exchanges two pairs of tiles. A shuffle also preserves parity because cycling three tiles can be written as two pairwise exchanges. On a 4×4 board, a one-cell rotation of a whole line cycles four tiles and changes parity. This gives a practical distinction: use the lens to make local even rearrangements, and use a one-cell whole-line rotation when you need to change parity and can plan for its wider effects.
SlideScramble’s challenge catalog stores the starting board and the recorded moves, so you can replay a solution or inspect it one step at a time. These four entries start from different 4×4 positions:
- Lens-Column reversal. The two rightmost columns are exchanged within the bottom-right 2×2. The recording reaches the solved board in seven moves.
- Lens-Row reversal. The two bottom rows are exchanged within the same 2×2. The recording also solves in seven moves.
- Lens Parity. The bottom two rows start scrambled in different ways. The recorded solution takes fifteen moves.
- Row reversal 1. Only the bottom row starts reversed. The recorded solution takes fifteen moves.
The recordings count saved rotations, which can move a line more than one cell. The formulas here count single-cell steps. You can get SlideScramble and its challenge collection from the public repository. SlideScramble README · Challenge catalog · CrystalCatalystLibrary repository