Funky python oneliner to get halite as 2D array


#1

halite_amount=list(map(lambda row: list(map(lambda cell: cell.halite_amount,row)) ,game.game_map._cells))


#2

List comprehensions are usually faster and more readable :wink:
halite_amout = [[c.halite_amount for c in row] for row in game.game_map._cells]