Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get the valid action space for a particular mini game map? #56

Closed
doudoujay opened this issue Aug 31, 2017 · 1 comment
Closed

Comments

@doudoujay
Copy link

I know we could use "available_action" to get the result dynamically, is there a way to get the static valid action space for a mini game map?

Also, same question for Unit Type Feature map, the input could be huge regarding to 1850 different unit type, can we get certain unit type for certain mini game map?

@tewalds
Copy link
Member

tewalds commented Aug 31, 2017

No, there is no way to get a static list of valid actions because that would only make sense if you only have one type of unit that can't be killed and it is always selected. If you want the subset of actions that are valid, try playing the random agent which should log all actions that it finds are ever valid. Of course on a complicated map it's unlikely to find them all.

You can get the full list of units from RequestStaticData, or just look up the ones that are common here: https://github.com/Blizzard/s2client-api/blob/master/include/sc2api/sc2_typeenums.h

@tewalds tewalds closed this as completed Aug 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants