Turing Trains | Isometric | Wang Tiles | Maze Arrays | i Logo


Maze Arrays


random Wang tile layouts


size Block 2 2-edge 3-edge Twin

Block 4 2-corner 3-corner Blob

Truchet   -Draw-


Use the pull-down menus to select a tileset, which will display as a random layout. Selecting a tileset from the same menu will update the tiles not re-randomise the array. The top blank menu entry removes all tiles.

Click 'Random' to create a new random layout.
Tick the check box below pull-down menus for alternative random layout methods.

Click 'Auto' to automatically alter tiles. Tiles are continueously re-drawn depending on the Draw radio button values, which can be changed while running. Click 'Auto' again to stop (and remove the button hi-lite).

Click 'Invert' to invert all tiles. Edge and corner '0' and '1' values are exchanged.
For order 3 tilesets, values '1' and '2' are exchanged leaving '0' unaffected. This swops high and low ground levels and reverses the flow of directed paths.

Click 'Clear' to clear the stage. Click again to cycle between 0 and 1 (2 order tilesets) or 0, 1 and 2 (3 order tilesets).

Click 'Maze' to automatically draw a 'perfect' maze, using the current 2-edge, 2-corner, Twin or Blob tileset. Tilesets in the upper part of the pull-down menu are best for mazes. Click 'Auto' to stop the maze. You can 'Invert' a 3 order maze while it is drawing (but not a 2-order).
Maze generation can be adjusted using the ran/last selector. 'Random' creates many short stubby paths (Prim's algorithm). 'Last' creates long winding paths (recursive backtracker algorithm).
Click 'Auto' to stop maze drawing. Mazes always begin with a cleared stage.


It may be easier to start drawing on a cleared stage.
To draw or delete paths, click to select a cell. The stage border will turn red to indicate 'edit' mode. A cursor will appear over the selected cell. Move the mouse to an adjacent perpendicular (edge tileset) or diagonal (corner tileset) cell and both tiles will update. If it does not, check you are not drawing using the same 'draw' value as the stage background.

To change the 'draw' value, select one of the radio buttons. Select 'inv' to invert paths. This swops '0' and '1' when using order 2 tilesets but swops '1' and '2' while leaving '0' unaffected with order 3 tilesets. This swops high and low ground levels and reverses the flow of directed paths.
When drawing with 'inv', you can retrace your path to invert values back again.

To stop drawing, click a cell to leave 'edit' mode. The stage border will turn back to black and the edge or corner cursor will be removed.

Blob tilesets cannot be inverted. Use Clear to toggle 'all on' and 'all off'. When a cell is selected and deselected without moving, the cursor will toggle between edge and corner editing.

With Twin tilesets you need to move 2 cells horizontally or vertically to draw.

With Block and Truchet tiles, drawing will cycle the tiles.

You can select 'Wang' tilesets from different menus without re-randomising the array. Twin to 3e, 2e to 3e or Blob, or 2c to 3c. Also 3e or Blob to 2e (will change any edges of '2' to '0'). And 3c or Blob to 2c (will change any corners of '2' to '0').

Use the 'grout' checkbox to show/hide a visual gap between tiles.

Use the 'stage' pull-down menu to select a different stage size.

See [Wang] for tileset information, [Tiles] for complete galleries and Block tilesets here.



use your browsers zoom option to enlarge arrays