gym-starcraft icon indicating copy to clipboard operation
gym-starcraft copied to clipboard

How to extract state info

Open Kyle1993 opened this issue 7 years ago • 2 comments

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 avatar Oct 10 '17 09:10 Kyle1993

@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 avatar Oct 10 '17 13:10 GaoFangshu

@GaoFangshu Thank you for your reply, your demo is really cool!

Kyle1993 avatar Oct 18 '17 02:10 Kyle1993