Remove debugging fn

This commit is contained in:
akp 2023-12-11 15:18:36 +00:00
parent 7c585ccafe
commit d70ce8e8f9
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755

View file

@ -21,16 +21,6 @@ def parse(instr: str) -> Universe:
return res
def print_coord_grid(universe: Universe):
n_x = max(map(lambda x: x[0], universe.keys())) + 1
n_y = max(map(lambda x: x[1], universe.keys())) + 1
for y in range(n_y):
for x in range(n_x):
_debug(universe.get((x, y), "."), end="")
_debug()
def expand_universe(universe: Universe, n: int):
used_rows = list(map(lambda x: x[1], universe.keys()))
expand_rows = [i for i in range(max(used_rows)) if i not in used_rows]