Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 1.88 KB

File metadata and controls

78 lines (57 loc) · 1.88 KB

Installation

Clone the repository

$ cd ~/git
$ git clone git@github.com:nidup/starcraft2-agent.git
$ cd ~/git/starcraft2-agent/

Install with Python 3.6

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/

Test the environment

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

Test the PySC2 demo agents

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