Giter VIP home page Giter VIP logo

tfg-botsc's Introduction

[TFG] Reinforcement Learning for StarCraft II

Authors:

  • Miriam Leis Baltanás
  • Pablo Joaquín Rodríguez Hidalgo

Start Guide

This project uses PySC2 and StarCraft II in addition to a collection of modified minimaps for StarCraft II, which are included on this project.

Get PySC2

The follow instructions can be found on PySC2 repository

PyPI

The easiest way to get PySC2 is to use pip:

$ pip install pysc2

You may also need to upgrade pip: pip install --upgrade pip for the pysc2 install to work. If you're running on an older system you may need to install libsdl libraries for the pygame dependency.

From Source

You can install latest PySC2 codebase from git master branch:

$ pip install --upgrade https://github.com/deepmind/pysc2/archive/master.zip`

Or from a local clone of the git repository:

$ git clone https://github.com/deepmind/pysc2.git
$ pip install --upgrade pysc2/

Get StarCraft II

The follow instructions can be found on PySC2 repository

Linux

Follow Blizzard's documentation to get the linux version. By default, PySC2 expects the game to live in ~/StarCraftII/. You can override this path by setting the SC2PATH environment variable or creating your own run_config.

Windows/MacOS

Our project depends on the full StarCraft II game and only works with versions that include the API, which is 3.16.1 and above. The easiest way to get StarCraft II is to install it from Battle.net. Even the Start Edition will work. If you changed the install location, you might need to set the SC2PATH environment variable with the correct location.

Get Minigames

You have modified minigames used in this project on mini_games\ folder. Copy this folder into your Maps\ folder from your StarCraft II installation directory. The default installation directories are:

  • Windows: C:\Program Files (x86)\StarCraft II\
  • Mac: /Applications/StarCraft II/
  • Linux: the installation directory is the folder you extracted the linux package into.

Maybe some folders are missing. Create Maps folder if it is necessary. Also you need to add these minigames in PySC2. To do that, open pysc2\maps\mini_games.py and add to minigames array the following minigames names:

mini_games = [ ##Now you add this few lines 
    "MoveToBeacon",  # 120s   
    "DefeatZealotswithBlink", # 120s
    "DefeatZealotswithBlink_2enemies", # 120s
    "DefeatZealotswithBlink_2vs2", # 120s
    "BuildMarines", # 900s
]

tfg-botsc's People

Contributors

miriamleis avatar pablojor avatar

Watchers

 avatar  avatar

Forkers

pablojor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.