Generating mazes inside an Excel worksheet.
There is a huge amount of web resources for doing that. Here's another one.
This repository provides two files:
- ExcelMaze.xlsm - Excel workbook with embedded macros
- ExcelMaze.vba - Macros in a separate file (you don't need it)
- Open Excel workbook ExcelMaze.xlsm
- Enter dimensions of the maze
- Enter block size and color:
- The size of cell A1 determines the size of the blocks.
- The color of cell A1 determines the color of the walls.
- The color of cell A2 determines the color of the paths.
- Press START button
There are three procedures:
Sub Start()
- Called when the START button is pressedSub CreateMaze(...)
- Creates a new maze using a classic non-recursive backtracking algorithmSub CopyMazeToSheet(...)
- Copies the maze into a new worksheet
- Parameters:
- Maze: