gym-starcraft
gym-starcraft copied to clipboard
How to extract state info
In this paper the author extract the state for each unit as a tensor 72 * 72 * 16, 72*72 represent the map size, each channel in the space describes either the hit points, the damage or the safety attacking range for all the agents on the map, How can I extract this info from self.state?
@Kyle1993 Although I am not author of this paper, I guess that map data can be extract from map_data
object, and you can get the "agent position / attacking range / damage" from data stream after parse_table
function, then build each channel respectively. You can refer another repo of Alibaba, and here is my demo to represent real-time map data and attacking range.
Hope this might be helpful for you :smiley:
@GaoFangshu Thank you for your reply, your demo is really cool!