Advertisement
Guest User

Untitled

a guest
Mar 8th, 2019
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. # A-Guide-to-DeepMind-s-StarCraft-AI-Environment-
  2. This is the code for "A Guide to DeepMind's StarCraft AI Environment" by Siraj Raval on Youtube
  3.  
  4. ## Overview
  5.  
  6. This is the code for [this](https://youtu.be/URWXG5jRB-A) video on on Youtube by Siraj Raval. This code will help you train or run a pretrained AI model in the DeepMind Starcraft II environment.
  7.  
  8. ## Dependencies
  9.  
  10. - pysc2 (Deepmind) [https://github.com/deepmind/pysc2]
  11. - baselines (OpenAI) [https://github.com/openai/baselines]
  12. - s2client-proto (Blizzard) [https://github.com/Blizzard/s2client-proto]
  13. - Tensorflow 1.3 (Google) [https://github.com/tensorflow/tensorflow]
  14.  
  15. ## Usage
  16.  
  17.  
  18. ## 1. Get PySC2
  19.  
  20. ### PyPI
  21.  
  22. The easiest way to get PySC2 is to use pip:
  23.  
  24. ```shell
  25. $ pip install pysc2
  26. ```
  27.  
  28. Also, you have to install `baselines` library.
  29.  
  30. ```shell
  31. $ pip install baselines
  32. ```
  33.  
  34. ## 2. Install StarCraft II
  35.  
  36. ### Mac / Win
  37.  
  38. You have to purchase StarCraft II and install it. Or even the Starter Edition will work.
  39.  
  40. http://us.battle.net/sc2/en/legacy-of-the-void/
  41.  
  42. ### Linux Packages
  43.  
  44. Follow Blizzard's [documentation](https://github.com/Blizzard/s2client-proto#downloads) to
  45. get the linux version. By default, PySC2 expects the game to live in
  46. `~/StarCraftII/`.
  47.  
  48. * [3.16.1](http://blzdistsc2-a.akamaihd.net/Linux/SC2.3.16.1.zip)
  49.  
  50. ## 3. Download Maps
  51.  
  52. Download the [ladder maps](https://github.com/Blizzard/s2client-proto#downloads)
  53. and the [mini games](https://github.com/deepmind/pysc2/releases/download/v1.0/mini_games.zip)
  54. and extract them to your `StarcraftII/Maps/` directory.
  55.  
  56. ## 4. Train it!
  57.  
  58. ```shell
  59. $ python train_mineral_shards.py
  60. ```
  61.  
  62. ## 5. Enjoy it!
  63.  
  64. ```shell
  65. $ python enjoy_mineral_shards.py
  66. ```
  67.  
  68. ## Credits
  69.  
  70. The credits for this code go to [chris-chris](https://github.com/chris-chris/pysc2-examples). I've merely created a wrapper to get people started.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement