Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Astropulse/hexmap
/ push
Function
push
map.py:410–413 ·
view source on GitHub ↗
(r: int, c: int)
Source
from the content-addressed store, hash-verified
408
q = deque()
409
410
def
push(r: int, c: int):
411
if
water[r, c] and not ocean[r, c]:
412
ocean[r, c] = True
413
q.append((r, c))
414
415
for
c in range(cols):
416
push(0, c)
Callers
2
ocean_connected_hex
Function · 0.85
enforce_dy_limit
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected