Playing StarCraftII yourself or running sample agents

To test whether the installation went fine and to see what the StarCarftII learning environment looks like, you can quickly start up a randomly-acting agent on the Simple64 map or the CollectMineralShards map using the following command:

          (rl_gym_book) praveen@ubuntu:~/HOIAWOG/ch9$ python -m pysc2.bin.agent --map Simple64
        

You can also load another available map for the environment. For example, the following command loads the CollectMineralShards map:

          (rl_gym_book) praveen@ubuntu:~/HOIAWOG/ch9$ python -m pysc2.bin.agent --map CollectMineralShards
        

This should bring up a UI showing you the actions taken by the random agent, which gives you an idea of what the valid actions are and helps ...

Get Hands-On Intelligent Agents with OpenAI Gym now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.