MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / genMap

Function genMap

assets/js/maze.js:87–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 };
86
87 function genMap() {
88 mazeMap = new Array(height);
89 for (y = 0; y < height; y++) {
90 mazeMap[y] = new Array(width);
91 for (x = 0; x < width; ++x) {
92 mazeMap[y][x] = {
93 n: false,
94 s: false,
95 e: false,
96 w: false,
97 visited: false,
98 priorPos: null
99 };
100 }
101 }
102 }
103
104 function defineMaze() {
105 var isComp = false;

Callers 1

MazeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected