Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ game_logic
Function
game_logic
example_code/item_073.py:82–84 ·
view source on GitHub ↗
(state, neighbors)
Source
from the content-addressed store, hash-verified
80
81
82
def
game_logic(state, neighbors):
83
# Do some blocking input/output in here:
84
data = my_socket.recv(100)
85
86
def
game_logic(state, neighbors):
87
if
state == ALIVE:
Callers
1
game_logic_thread
Function · 0.70
Calls
1
recv
Method · 0.80
Tested by
no test coverage detected