class State:
“””A State holds a current game state and all of its attributes”””
def __init__(self):
Copyright By PowCoder代写 加微信 powcoder
“””Create a new gamestate”””
self.gs = {}
def getState(self, key=None):
return self.gs[key]
return self.gs
def updateState(self, key, val):
self.gs[key] = val
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com