MCPcopy Create free account
hub / github.com/Astropulse/hexmap / rdeg

Function rdeg

map.py:634–635  ·  view source on GitHub ↗
(r: int, c: int)

Source from the content-addressed store, hash-verified

632 rows, cols = out.shape
633
634 def rdeg(r: int, c: int) -> int:
635 return sum(1 for rr, cc in hex_neighbors(r, c, rows, cols) if out[rr, cc] == 1)
636
637 for _ in range(max(0, int(cfg.river_prune_passes))):
638 kill = []

Callers 1

prune_riversFunction · 0.85

Calls 1

hex_neighborsFunction · 0.85

Tested by

no test coverage detected