Code Monkey home page Code Monkey logo

movetobeacon's Introduction

MoveToBeacon

Introduction

Implementation of an Artificial Intelligent Agent that learns to play the StarCraft II minimap MoveToBeacon by itself using only raw pixels.

Environment

In this project PySC2 is used. PySC2 is a Python-based interface for communicating with the game engine.

One important argument of the environment is step_mul. It defines the number of game steps per observation. With a screen size of 64 x 64 pixels and a step_mul of 3 the player moves at a speed of about 1 pixel per observation.

MoveToBeacon

MoveToBeacon is a map with 1 Marine and 1 Beacon. The Marine earns a reward of 1 for reaching the Beacon. If the Marine doesn't reach the Beacon, the Beacon disappears after 120 seconds (we call this time frame an episode). After one episode the environment is reset. For a perfect player it's possible to receive a total reward of about 30 after 120 seconds.

Run

Reinforce

$ python -m reinforce.run

A2C

$ python -m a2c.run

PPO

$ python -m ppo.run

Results

Reinforce

A2C

PPO

movetobeacon's People

Contributors

saschaschramm avatar

Watchers

John D. Pope avatar  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.