GithubHelp home page GithubHelp logo

sc2-rl's Introduction

SC2-RL

Static Badge Status Python

starcraftII (giphy)

Creation of a Reinforcement Learning agent that plays Starcraft II. This project emerges from the interest on reinforcement learning and the complexity of a stratigic game like starcraft.

Diagrams

This section will help you understand how the ecosystem works.

Components diagram

Displays the components and the interactions between each other.

Components diagram

Execution diagram

Since the execution of the exosystem has two different times, since half part is asyncronous and the other is synchronus, the diagram tries to reflect what is the workflow.

Execution diagram

Setup steps

  1. Starcraft II installed in your system
  2. Python >= 3.7
  3. Install dependencies poetry install
  4. Add dependencies inside environment (tensorflow && tf_agents)
    1. .venv/Script/Activate.ps1 (Windows)
    2. source .venv/script/activate (Linux/MacOS)
    3. pip install tensorflow tf_agents
  5. Install dependecy python-sc2
  6. Create a folder named logs on parent folder
  7. Create a folder named Maps under your Starcraft II installation folder.
  8. Add maps (.SC2MAP files) under previous folder, they are available for download in sites such as sc2mapster.
    1. For this use case, scorpion map is used.

In case you are having trouble with environment, once done step 4.3, repeat step 3.

Run

  1. Using docker run redis service
    1. docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest
  2. Activate your environment and execute python main.py
    1. Linux source .venv/scripts/activate
    2. Windows .venv/Scripts/Activate.ps1

Authors

Setup created following setup tutorial by sendtex

Contribute

Commit && PR Messages

[MODULE][FIX|ADD|DELETE] Summary of modifications

* [MODULE2][ADD] List of modifications from a general perspective

Example

[SC2-RL][FIX] Diagrams && subprocess
* [README][ADD] Execution && Component diagram
* [BOT][ADD] Change from `aioredis` to `redis.asyncio`
* [RUN_GAME][DELETED]
* [SC2ENV][FIX] Subprocess platform

sc2-rl's People

Contributors

blitty-codes avatar alvarotena avatar w-dan avatar

Watchers

 avatar

sc2-rl's Issues

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.