geek-ai / MAgent

A Platform for Many-Agent Reinforcement Learning
MIT License
1.68k stars 332 forks source link

Some questions about the action label #36

Closed woaipichuli closed 5 years ago

woaipichuli commented 5 years ago

I have read the code and have some questions about the action label. In the doc file (get_start.md) you have provided, there are 23 different actions agents can take. However, I have no idea about how to map the action label to a specific action (left or right,1 step or 2 step,etc). I would be appreciate if you can provide more details.

KornbergFresnel commented 5 years ago

@woaipichuli The action space includes not only direction, but also range.

merrymercy commented 5 years ago

The mapping for that picture is

screenshot from 2018-08-08 15-02-39

For different game config, the range of moving and attacking is different. The turn actions are disabled by default. https://github.com/geek-ai/MAgent/blob/872680a8b9fee02c527306e65c4aeee1641b11a5/python/magent/builtin/config/battle.py#L17

You can confirm the mapping for your game by letting all your agents take a same action and watch the video.

woaipichuli commented 5 years ago

@merrymercy Thank you, that will be helpfull. Yes, watch the video can help, but that will needs lots of try. Does the mapping rules (from right to left, from top to bottom) of actions as shown in the figure are the same even when the game config changes?