Skip to content

lfricken/sc2ai

Repository files navigation

sc2ai

A collection of StarCraft 2 AI written in python. Some will actually attempt to play the game, some use deep learning via Tensorflow to do predictions.

Here is an example of a win prediction model. It was trained on replays and is just based on the number of each unit that a player has. Here is it's prediction over the course of a game. It has no concept of unit location on the map though. Top graph is in game score aggregate of resources and units. Bottom graph are the estimated odds of winning at each second. Zerg did end up winning this match. I believe the enemy was Terran.

Failed to load. Click on win_odds_zerg.png.

Installation:

Install the following in order:

  • Python 3.6.x
  • pip
  • tensorflow-gpu or tensorflow if you're lame. Do not attempt to build from source on Windows in either case.
  • Pycharm
  • Upon cloning the repository, run update-packages.bat, which will update other dependencies used by this repository. It relies on pip working from the command-line.

Setting Up Pycharm:

  • File > Import Settings > sc2ai directory > pycharm_settings.jar
  • Open Project > sc2ai directory
  • Mark the working folder inside \custom as source root. You will want to unmark it if you move to another custom folder.
  • Run > Templates > Python >
    • Target To Run: Script path
    • Python interpreter: Python 3.6.x (pointing at your python.exe file)

About

SC2 win prediction neural network using Tensorflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages