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

Class BetterGameState

example_code/item_107.py:200–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198del GameState
199
200class BetterGameState:
201 def __init__(self, level=0, points=0, magic=5):
202 self.level = level
203 self.points = points
204 self.magic = magic
205
206
207print("Example 22")

Callers 1

item_107.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected