def __init__(self): env = FlappyBird() self.p = PLE(env, add_noop_action=True) self.p.init() self.win_score = 10. action_space = len(self.p.getActionSet()) state_space = len(self.p.getGameState()) actions = ["up", "nothing"] state_names = list(self.p.getGameState().keys()) Environment.__init__(self, env, action_space, state_space, actions, state_names)
def __init__(self, name): Environment.__init__(self, name)
def __init__(self, timer, dimensions): Dimensioned.__init__(self, Vertex(*dimensions)) Environment.__init__(self, timer)