Wang Tiles

 

edge and corner matched tilesets

menu

Twin Mazes

An alternative layout method is to use a 3-edge tileset to create two independent mazes on the same grid. We only need 33 of the available (3^4)=81 tiles. So Twin mazes use a reduced 3-edge tileset.

3-edge Ground/Bridge only
tile tile tile tile tile tile tile tile tile tile tile tile tile tile
tile tile tile tile tile tile tile tile tile tile tile tile tile tile
1 3 4 9 10 12 13 27 28 30 31 36 37 39
3-edge Ground/Trench only
tile tile tile tile tile tile tile tile tile tile tile tile tile tile
tile tile tile tile tile tile tile tile tile tile tile tile tile tile
2 6 8 18 20 24 26 54 56 60 62 72 74 78
plus...
tile tile tile tile tile
tile tile tile tile tile
0 40 50 70 80

Here are the 33 required tiles and also their equivalent Wang tiles for reference.
A default layout would look like this:

Twin maze layout and equivalent 3-edge reduced Wang tileset
Twin Maze layout

See Stage for more random twin path mazes. Both Bridge and Trench mazes are 'perfect' and independent of each other. After maze generation, some alternative 'link' tiles are added to the Brench array only, see Twin tilesets.

Link tiles

They can only be added where the steps align correctly on two sides of an empty grass tile. The tiles 'link' the upper Bridge and lower Trench mazes.
'Link' tiles
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile
tile tile

Weave 'cross' tiles

If a more random weave effect is needed, then alternate 'cross' designs for both tile-50 and tile-70 can be randomly substituted.
Bridge/Trench have no alternatives because a bridge can only appear above (or over) a trench. Pipes can have alternatives. The Route tileset can have alternate 'cross' tiles with road barriers open or closed.
Pipes 'cross' tiles
tile tile tile tile

Route 'cross' tiles
tile tile tile tile

Alternate tiles

Tileset Tile-0
'link'
Tile-15
'weave'
Tile-5
'straight'
Tile-10
'straight'
Brench tile tile none tile same tile same
Pipes tile tile tile tile tile tile tile tile
Route none tile tile same tile same tile

Stage: Random Twin 2-edge 'Bridge & Trench' Tileset

Twin Path Bridge & Trench & 3-edge Wang

Wang Tiles | cr31.co.uk | 2018