How to get position while giving a tuple


#1

In python how to get position equivalent variable from a given a tuple or how to use naive_navigate by tuple???
Thanks for the help


#2

from hlt.positionals import Position

position_tuple = (7,16)

logging.info(‘halite at 7, 16: {}’.format(game_map[Position(*position_tuple)].halite_amount))
logging.info(‘halite at 7, 16: {}’.format(game_map[Position(7,16)].halite_amount))