(self)
return ret
Returns a json snapshot of the current game state.
Returns a json snapshot of the current game state.
Returns a json snapshot of the current game state .
def get_json_info(self):
        """Returns a json snapshot of the current game state."""
        ret = {
            'board_size': self._board_size,
            'step_count': self._step_count,
            'board': self._board,
            'agents': self._agents,
            'bombs': self._bombs,
            'flames': self._flames,
            'items': [[k, i] for k, i in self._items.items()],
            'intended_actions': self._intended_actions
        }
        for key, value in ret.items():
            ret[key] = json.dumps(value, cls=utility.PommermanJSONEncoder)
        return ret
def get_json_info ( self ) : ret = { 'board_size' : self . _board_size , 'step_count' : self . _step_count , 'board' : self . _board , 'agents' : self . _agents , 'bombs' : self . _bombs , 'flames' : self . _flames , 'items' : [ [ k , i ] for k , i in self . _items . items ( ) ] , 'intended_actions' : self . _intended_actions } for key , value in ret . items ( ) : ret [ key ] = json . dumps ( value , cls = utility . PommermanJSONEncoder ) return ret