MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / valid

Function valid

graphs/multi_heuristic_astar.py:123–126  ·  view source on GitHub ↗
(p: TPos)

Source from the content-addressed store, hash-verified

121
122
123def valid(p: TPos):
124 if p[0] < 0 or p[0] > n - 1:
125 return False
126 return not (p[1] < 0 or p[1] > n - 1)
127
128
129def expand_state(

Callers 1

expand_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected