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

Method createEmptyMap

src/EECBSVisualizer.jsx:131–141  ·  view source on GitHub ↗
(row, col)

Source from the content-addressed store, hash-verified

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

Callers 3

changeMapRowMethod · 0.95
changeMapColMethod · 0.95
startNewTaskMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected