MCPcopy Index your code
hub / github.com/StevenLyt/mapf-visualizer / createEmptyMap

Method createEmptyMap

src/LAMAPFVisualizer.jsx:118–128  ·  view source on GitHub ↗
(row, col)

Source from the content-addressed store, hash-verified

116 }
117
118 createEmptyMap(row, col) {
119 return new Array(row).fill().map(() =>
120 new Array(col).fill().map((u) => ({
121 isWall: false,
122 isStart: false,
123 isGoal: false,
124 agent: -1,
125 color: "",
126 }))
127 );
128 }
129
130 async requestSolution(e) {
131 e.preventDefault();

Callers 3

changeMapRowMethod · 0.95
changeMapColMethod · 0.95
startNewTaskMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected