kernel32.dll + user32.dll only (Zero C Runtime Overhead)Carves a 65 × 23 grid into a perfect acyclic maze.
Finds provably shortest path from S(1,1) to G(21,63).
Renders 24-bit terminal frames via single write buffer.
.\scripts\build.ps1 -Run -Instant.\scripts\build.ps1 -SVG.\build\mazerunner.exe --heatmap.\build\mazerunner.exe --algo prim.\build\mazerunner.exe --algo kruskal.\build\mazerunner.exe --playGetStdHandle, GetConsoleMode, SetConsoleMode, SetConsoleOutputCP, SetConsoleTitleA, GetCommandLineA, WriteFileQueryPerformanceCounter, QueryPerformanceFrequency, Sleep, BeepExitProcessGetAsyncKeyState--play mode.and rsp, -16 enforces Win64 ABI 16-byte stack boundary requirement.Index = (row × MAZE_W) + coldiv instructionqueue[] : Circular Queuepredecessor[] : Parent Mapdistance[] : Heatmap Depthsearch_trace[] : Expansion Tracecarve_stack[] : Explicit Stackpredecessor[] : Visited Setdfs_trace[] : Expansion Orderdfs_path[] : Final Routeµs = (qpc_end - qpc_start) × 1,000,000 ÷ qpc_freq\x1b[H to move cursor to (1,1) without screen clear.RDI cursor appends ANSI strings into 64 KB frame_buffer.WriteFile syscall per frame to eliminate terminal flicker completely.[ ▁▂▃▄▅▆▇█ ] sampled up to 40 entries: height = (frontier_size × 8) / peak_frontier| Symbol Name | Value | Description & Constraints |
|---|---|---|
MAZE_W | 65 | Grid width (odd-room parity) |
MAZE_H | 23 | Grid height (odd-room parity) |
MAZE_N | 1495 | MAZE_W × MAZE_H total allocation |
MAX_N | 2048 | Buffer allocation ceiling |
SEARCH_BATCH | 6 | Revealed cells per animation frame |
FRONTIER_SPAN | 16 | Lookahead window for active glow |
PATH_BATCH | 4 | Optimal path cells per frame |
HEATMAP_COLORS | 16 | Catppuccin distance gradient steps |
SPARKLINE_WIDTH | 40 | Maximum sparkline columns |
SPARKLINE_SAMPLE | 32 | BFS expansion sampling frequency |