MCPcopy Create free account
hub / github.com/StevenLyt/mapf-visualizer / createEmptyMap

Method createEmptyMap

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

Source from the content-addressed store, hash-verified

126 }
127
128 createEmptyMap(row, col) {
129 return new Array(row).fill().map(() =>
130 new Array(col).fill().map((u) => ({
131 isWall: false,
132 isStart: false,
133 isGoal: false,
134 agent: -1,
135 color: "",
136 }))
137 );
138 }
139
140 async requestSolution(e) {
141 e.preventDefault();

Callers 3

changeMapRowMethod · 0.95
changeMapColMethod · 0.95
startNewTaskMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected