MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / get_direction

Function get_direction

Python/dijkstra.py:30–31  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

28 return [2, 3, 0, 1][index]
29
30def get_direction(index):
31 return ["north", "east", "south", "west"][index]
32
33# the "closed list"
34def create_unavailable_grid(height, width):

Callers 1

escape_routeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected