$ cd ~/git
$ git clone git@github.com:nidup/starcraft2-agent.git
$ cd ~/git/starcraft2-agent/
Install PySC2 - StarCraft II Learning Environment
$ python3.6 -m pip install setuptools
$ python3.6 -m pip install pysc2
$ python3.6 -m pip install scipy
$ python3.6 -m pip install sklearn
$ python3.6 -m pip install pandas
$ python3.6 -m pip install matplotlib
Download Starcraft 2 Linux Package and extract into the expected default location:
$ cd ~/Downloads
$ unzip SC2.4.0.2.zip
$ mv ~/Downloads/StarCraftII ~/
Download the mini games maps and Map Packs and extract into the expected map location:
$ cd ~/Downloads
$ unzip mini_games.zip
$ unzip Melee.zip
$ unzip Ladder2017Season3.zip
$ mv ~/Downloads/mini_games ~/StarCraftII/Maps/
$ mv ~/Downloads/Melee ~/StarCraftII/Maps/
$ mv ~/Downloads/Ladder2017Season3 ~/StarCraftII/Maps/
By playing a game as a human,
python3.6 -m pysc2.bin.play --map Simple64 --user_race T
More options and details can be found on PySC2 - StarCraft II Learning Environment
Collect Minerals Mini Game,
$ python3.6 -m pysc2.bin.agent --map CollectMineralShards --agent pysc2.agents.scripted_agent.CollectMineralShards
Move To Beacon Mini Game,
$ python3.6 -m pysc2.bin.agent --map MoveToBeacon --agent pysc2.agents.scripted_agent.MoveToBeacon
Defeat Roaches Mini Game,
$ python3.6 -m pysc2.bin.agent --map DefeatRoaches --agent pysc2.agents.scripted_agent.DefeatRoaches