Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ GameState
Class
GameState
example_code/item_107.py:51–54 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
49
50
print(
"Example 1"
)
51
class
GameState:
52
def
__init__(self):
53
self.level = 0
54
self.lives = 4
55
56
57
print(
"Example 2"
)
Callers
2
item_107.py
File · 0.85
unpickle_game_state
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected