MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / count_neighbors_thread

Function count_neighbors_thread

example_code/item_073.py:277–283  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

275 return count
276
277def count_neighbors_thread(item):
278 y, x, state, get_cell = item
279 try:
280 neighbors = count_neighbors(y, x, get_cell)
281 except Exception as e:
282 neighbors = e
283 return (y, x, state, neighbors)
284
285def game_logic_thread(item):
286 y, x, state, neighbors = item

Callers

nothing calls this directly

Calls 1

count_neighborsFunction · 0.70

Tested by

no test coverage detected