All Projects → SoyGema → Startcraft_pysc2_minigames

SoyGema / Startcraft_pysc2_minigames

Licence: apache-2.0
Startcraft II Machine Learning research with DeepMind pysc2 python library .mini-games and agents.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Startcraft pysc2 minigames

Learning To Communicate Pytorch
Learning to Communicate with Deep Multi-Agent Reinforcement Learning in PyTorch
Stars: ✭ 236 (+108.85%)
Mutual labels:  reinforcement-learning, deepmind
Reaver
Reaver: Modular Deep Reinforcement Learning Framework. Focused on StarCraft II. Supports Gym, Atari, and MuJoCo.
Stars: ✭ 499 (+341.59%)
Mutual labels:  reinforcement-learning, deepmind
Tensorwatch
Debugging, monitoring and visualization for Python Machine Learning and Data Science
Stars: ✭ 3,191 (+2723.89%)
Mutual labels:  reinforcement-learning, machinelearning
Java Deep Learning Cookbook
Code for Java Deep Learning Cookbook
Stars: ✭ 156 (+38.05%)
Mutual labels:  reinforcement-learning, machinelearning
Recurrent Environment Simulators
Deepmind Recurrent Environment Simulators paper implementation in tensorflow
Stars: ✭ 73 (-35.4%)
Mutual labels:  reinforcement-learning, deepmind
Free Ai Resources
🚀 FREE AI Resources - 🎓 Courses, 👷 Jobs, 📝 Blogs, 🔬 AI Research, and many more - for everyone!
Stars: ✭ 192 (+69.91%)
Mutual labels:  reinforcement-learning, machinelearning
Text summurization abstractive methods
Multiple implementations for abstractive text summurization , using google colab
Stars: ✭ 359 (+217.7%)
Mutual labels:  reinforcement-learning, machinelearning
Reinforcement Learning
Learn Deep Reinforcement Learning in 60 days! Lectures & Code in Python. Reinforcement Learning + Deep Learning
Stars: ✭ 3,329 (+2846.02%)
Mutual labels:  reinforcement-learning, deepmind
Mujocounity
Reproducing MuJoCo benchmarks in a modern, commercial game /physics engine (Unity + PhysX).
Stars: ✭ 47 (-58.41%)
Mutual labels:  reinforcement-learning, deepmind
Ml In Tf
Get started with Machine Learning in TensorFlow with a selection of good reads and implemented examples!
Stars: ✭ 45 (-60.18%)
Mutual labels:  reinforcement-learning, deepmind
Gym Fx
Forex trading simulator environment for OpenAI Gym, observations contain the order status, performance and timeseries loaded from a CSV file containing rates and indicators. Work In Progress
Stars: ✭ 151 (+33.63%)
Mutual labels:  reinforcement-learning, machinelearning
Sc2aibot
Implementing reinforcement-learning algorithms for pysc2 -environment
Stars: ✭ 83 (-26.55%)
Mutual labels:  reinforcement-learning, deepmind
Advanced Deep Learning And Reinforcement Learning Deepmind
🎮 Advanced Deep Learning and Reinforcement Learning at UCL & DeepMind | YouTube videos 👉
Stars: ✭ 121 (+7.08%)
Mutual labels:  reinforcement-learning, deepmind
Gymfc
A universal flight control tuning framework
Stars: ✭ 210 (+85.84%)
Mutual labels:  reinforcement-learning, machinelearning
Pysc2 Examples
StarCraft II - pysc2 Deep Reinforcement Learning Examples
Stars: ✭ 722 (+538.94%)
Mutual labels:  reinforcement-learning, deepmind
Dmc2gym
OpenAI Gym wrapper for the DeepMind Control Suite
Stars: ✭ 75 (-33.63%)
Mutual labels:  reinforcement-learning, deepmind
Gym Electric Motor
Gym Electric Motor (GEM): An OpenAI Gym Environment for Electric Motors
Stars: ✭ 95 (-15.93%)
Mutual labels:  reinforcement-learning, machinelearning
Tensorflow2.0 Examples
🙄 Difficult algorithm, Simple code.
Stars: ✭ 1,397 (+1136.28%)
Mutual labels:  reinforcement-learning
Imagecompletion incompletedata
Image completion network using incomplete data
Stars: ✭ 109 (-3.54%)
Mutual labels:  machinelearning
Reinforcement Learning
🤖 Implements of Reinforcement Learning algorithms.
Stars: ✭ 104 (-7.96%)
Mutual labels:  reinforcement-learning

GitHub license GitHub issues GitHub stars GitHub forks Twitter

Startcraft PySC2 mini-games and agents

This repository aims to serve as a guide for open source contributing in minigame pysc2 library for Starcraft II For minigame instalation for execution you should go to the official repository and install requirements

Direct Links

Please, if you want to reach directly mini-games click to the following link

Minigame task description

Minigames come as a controled environments that might be useful to exploit game features in SC2. General purpose learning system for Startcraft 2 can be a daunting task. So there is a logical option in splitting this tasks into minitask in orther to advance in research . Mini-games focus on different elements of Starcraft II Gameplay .

To investigate elements of the game in isolation, and to provide further fine-grained steps towards playing the full game, Deepmind has built several mini-games. These are focused scenarios on small maps that have been constructed with the purpose of testing a subset of actions and/or game mechanics with a clear reward structure. Unlike the full game where the reward is just win/lose/tie, the reward structure for mini-games can reward particular behaviours (as defined in a corresponding .SC2Map file).

Minigame introduction and Repo information

Before creating a minigame, I encourage you to run the alredy developed ones to see wich task are subdivided into each minigame as the reward function could be important due to the behaviour that leads to learning . The minigame title gives us a description of the goal You might find in this repo new maps created for investigate in explotation-exploration dilema and some programming about the functions of different units .

SentryDefense , ForceField , HallucinIce and FlowerFields Projects

In this repo, besides information about current minigames, you will find my own minigames development . In projects section you can know more about the state of the art and in docs and new_minigames folder you can find the map. In SentryDefense, a arrowhead TerranVSProtoss Melee is proposed . In ForceField,an imbalanced situation between Sentry and Zerg units forces sentry to use forcefield, adding terrain disposition.

1.- SentryDefense: Protoss VS Terran Melee.

2.- ForceField: Learn about Sentry forcefield function.

3.- HallucinIce: Learn how to play with hallucination.

4.- FlowerFields: Defeat protoss photon cannon .

5.-TheRightPath: Move to beacon finding the optimal route collecting minerals and avoiding mines .

6.-RedWaves: Choose your race and defend against waves of zerg attacks .

7.-BlueMoon: Choose unit development to defend against protoss development . (under construction)

8.-MicroPrism: Learn how to use Warp Prism in a protoss versus protoss stalker melee

Agents

Regarding scripted agent, there is a python file with several developments. Scriptedagent.py is focused on HallucinIce map in which makes Archon Hallucination. Besides there is another class that put all hallucination actions on a list and the agent chooses randomly in between those actions .

Q-Learning and DQN agents are provided for HallucinIce minigame with the new PySC2 release

An A3C trained agent has been tested with several minigames, reaching some of them a local optima . Please, report problems in issues if you currently find problems .

How to run mini-games in your environment

  1. Download or clone the repository, or download all minigames clicking here

  2. Place the .SC2 files into /Applications/StarCraft II/Maps/mini_games/ -sometimes the Map folder might not exist. If so, please create it-

  3. Go to pysc2\maps\mini_games.py and add to mini-games array the following mini-games names

mini_games = [  ## This mini-games names should alredy been in your list
    "BuildMarines",  # 900s
    "CollectMineralsAndGas",  # 420s
    "CollectMineralShards",  # 120s
    "DefeatRoaches",  # 120s
    "DefeatZerglingsAndBanelings",  # 120s
    "FindAndDefeatZerglings",  # 180s
    "MoveToBeacon",  # 120s   ##Now you add this few lines 
    "SentryDefense", # 120s
    "ForceField", # 30s
    "HallucinIce", # 30s
    "FlowerFields", # 60s
    "TheRightPath", # 300s
    "RedWaves", # 180s
    "BlueMoon", # 60s
    "MicroPrism", # 45s
]
  1. In your console, you can type the mini-game map name
my-computer:~ me$ python -m pysc2.bin.agent --map FlowerFields 

Tutorial

Find an ongoing tutorial about how to create your own mini-game here

Other repository

With features with map placement here

'Making a reward function isn’t that difficult. The difficulty comes when you try to design a reward function that encourages the behaviors you want while still being learnable.' -Deep Reinforcement Learning Doesn´t work yet , Alex Irpan post-

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].