(e)
| 244 | } |
| 245 | |
| 246 | changeMapRow(e) { |
| 247 | let t = parseInt(e.target.value); |
| 248 | t = t > 30 ? 30 : t < 4 ? 4 : t; |
| 249 | t = Math.min(t, this.state.numCol); |
| 250 | this.setState({ |
| 251 | tempRow: t, |
| 252 | numRow: t, |
| 253 | map: this.createEmptyMap(t, this.state.numCol), |
| 254 | agents: [], |
| 255 | numAgents: 0, |
| 256 | startToAdd: false, |
| 257 | goalToAdd: false, |
| 258 | addedSRowClick: null, |
| 259 | addedSColClick: null, |
| 260 | }); |
| 261 | } |
| 262 | |
| 263 | changeMapCol(e) { |
| 264 | let t = parseInt(e.target.value); |