MCPcopy Create free account
hub / github.com/AxlLind/AdventOfCode / fill

Function fill

2018/src/17.py:7–10  ·  view source on GitHub ↗
(m: dict[tuple[int,int],str], x: int, y: int, d: int)

Source from the content-addressed store, hash-verified

5sys.setrecursionlimit(10000)
6
7def fill(m: dict[tuple[int,int],str], x: int, y: int, d: int) -> None:
8 while m[x,y] == '|':
9 m[x,y] = '~'
10 x += d
11
12def flow(m: dict[tuple[int,int],str], ymax: int, x: int, y: int, d: int) -> bool:
13 if y > ymax:

Callers 1

flowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected