I want to search a bunch of locations on the enemy’s side to know on which locations are destructors, filters, encryptors or nothing. What’s the best way of getting the unit type on given location?
game_state.game_map[x,y] will return a list of units at a given location. Your algo always sees itself as player1, so your enemies area is any valid location where y > 13. There has been some great discussion about specific techinques to do this efficiantly on the forum if you look around.