GithubHelp home page GithubHelp 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

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

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.