Giter VIP home page Giter VIP logo

pysc2tencentextension's Introduction

Tencent AI Lab PySC2 Extension

Note: the original Deepmind PySC2 README can be found here.

Note: Current commit (>= 5042919a 2020/11/19) works for TStarBot-X; To run with the old TStarBot1 and TStarBot2, please revert to the commit 4f790218 2019/5/15

Besides the "feature_layer" observations/actions interface, this Tencent AI Lab fork also exposes the "raw" interface of s2client-proto to enable a per-unit-control.

It supports a hybrid use of the two intefaces. For example, consider a two-player game and the code below

timesteps = env.step(actions)

For player_id = 0, all the uints in pb format can be accessed via timesteps[player_id].observation['units], while the original Deepmind PySC2 features can still be accessed via timesteps[player_id].observation['feat_name'].

For the actions passed in, acionts[player_id] can be either a list of pb actions or a single Deepmind PySC2 action. (TODO: support a list of hybrid action when necessary).

It goes similar for the other player player_id = 1.

Installation

git clone the repo, cd to the folder, and run

pip install -e .

Note: the in-place -e . installation is REQUIRED, as we have binaries (i.e., the tech_tree data) shipped with the fork and the -e . in-place installation makes life easier.

Note also that you need pip uninstall the original Deempind PySC2 before installing/using our fork. Doning so would not be a problem, as this fork is compatible with the original Deepmind PySC2.

pysc2tencentextension's People

Contributors

balderli avatar botdot avatar brean avatar cole-maclean avatar inoryy avatar islamelnabarawy avatar jagapiou avatar james0618 avatar jchxiong avatar jonhoye avatar k24d avatar lns avatar luismesas avatar michaelstuartjr avatar now-raymond avatar oriolvinyals avatar pengsun avatar philomely avatar safplusplus avatar skjb avatar slivermoda avatar soygema avatar tewalds avatar tomwardio avatar tsuiwwwayne avatar ttinies avatar xinghai-sun avatar zyqlzr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pysc2tencentextension's Issues

The path of StarCraftII

Hi there, I am just wondering how I find the path to the StarCraftII installation? Thank you so much!

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.