Skip to content
Snippets Groups Projects

Resolve "simple pathfinding"

Merged Fabian Heinrich requested to merge 120-simple-pathfinding into dev
@@ -211,7 +211,7 @@ def create_movement_graph(state: StateRepresentation, diagonal=True) -> Graph:
free_space = np.ones((width, height), dtype=bool)
for counter in state["counters"]:
grid_idx = np.array(counter["pos"]).round().astype(int)
free_space[*grid_idx] = False
free_space[grid_idx[0], grid_idx[1]] = False
graph = networkx.Graph()
for i in range(width):
Loading