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

Function make_common_ground

graphs/multi_heuristic_astar.py:172–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170
171
172def make_common_ground():
173 some_list = []
174 for x in range(1, 5):
175 for y in range(1, 6):
176 some_list.append((x, y))
177
178 for x in range(15, 20):
179 some_list.append((x, 17))
180
181 for x in range(10, 19):
182 for y in range(1, 15):
183 some_list.append((x, y))
184
185 # L block
186 for x in range(1, 4):
187 for y in range(12, 19):
188 some_list.append((x, y))
189 for x in range(3, 13):
190 for y in range(16, 19):
191 some_list.append((x, y))
192 return some_list
193
194
195heuristics = {0: consistent_heuristic, 1: heuristic_1, 2: heuristic_2}

Callers 1

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected