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

Function game_logic_thread

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

Source from the content-addressed store, hash-verified

95 return state
96
97def game_logic_thread(item):
98 y, x, state, neighbors = item
99 try:
100 next_state = game_logic(state, neighbors)
101 except Exception as e:
102 next_state = e
103 return (y, x, next_state)
104
105# Start the threads upfront
106threads = []

Callers

nothing calls this directly

Calls 1

game_logicFunction · 0.70

Tested by

no test coverage detected