Git Product home page Git Product logo

ml-vs-goap-unity's Introduction

ML-vs-GOAP-Unity-Demo

This project was created as part of my graduation work. The goal was to create an AI based on Machine Learning Algorithms and compare it to a more traditional approach like Goal-Oriented Action Planning (GOAP).

Reinforcement Learning in the Unity Machine Learning environment was used to train the Agents. The GOAP-AI was implemented by using Sploregs GOAP implementation (see link below) and fitting it to my project.

A playing field resembling an arena was chosen to test both AIs against each other. The goal of each team is to activate both platforms in the middle at the same time and transport the spawning bomb into the opposing teams base. Agents can remove opposing agents from the playing field (for a few seconds) by colliding with their side/back.

The Machine Learning environment was designed to train agents in multiple steps and teach them to reach goals and account for opposing agents.

Below you can see the result:

See Learning Process: https://youtu.be/qp7AaqJI2oY

See Results: https://youtu.be/KHZ0Fa8jcZ8

How to get it to run?

Download the ML-Agents v0.5 Github Project and copy its Assets/ML-Agents folder to Monstertrainer/Assets.

DISCLAIMER - This project uses two other GitHub Projects:

ML-Agents from Unity-Technologies in Version v0.5 https://github.com/Unity-Technologies/ml-agents

Sploregs GOAP Implementation https://github.com/sploreg/goap

Developed in Unity 2018.2.5f1.

ml-vs-goap-unity's People

Stargazers

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

Watchers

 avatar  avatar

Forkers

hengle

ml-vs-goap-unity's Issues

License ?

Hello, under what license is this project released under ? I would like to study it to learn from it. Thank you.

So, which one is better? :)

Hello,

Very interesting project you've got here. I was also wondering how ML compares with GOAP algorithms. Of course, this is very subjective. But still, since there is no accompanying paper, can you elaborate a bit on which you thought was "smarter" or "better" for the purposes of the simple game you created? In the video's it seems as if they achieve roughly the same score on the game.

I my self am wondering if for instance the game F.E.A.R. which uses GOAP and had very interesting AI behaviors, would it be as good if it had implemented machine learning or reinforcement learning instead? Please let me know your thoughts about this!

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.