

def getGameState(self):
    '\n        Gets a non-visual state representation of the game.\n        \n        Returns\n        -------\n\n        dict\n            * player x position.\n            * players velocity.\n            * fruits x position. \n            * fruits y position.\n\n            See code for structure.\n\n        '
    state = {
        'player_x': self.player.rect.center[0],
        'player_vel': self.player.vel,
        'fruit_x': self.fruit.rect.center[0],
        'fruit_y': state.fruit.rect.center[1],
    }
    return state

dataset/ETHPy150Open ntasfi/PyGame-Learning-Environment/ple/games/catcher.py Catcher.getGameState/VarMisuse@55/173 `self`->`state`