GithubHelp home page GithubHelp logo

zenith08 / tronmachinelearning Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 61 KB

A game made in Processing based on the 2D version of "Tron" and featuring AI neural network enemies.

Processing 100.00%
survival ais survival-mode game processing neural-network neat-algorithm

tronmachinelearning's Introduction

Tron 2D Light Cycles

Featuring Neuroevolution

Banner After hearing about the possabilities of machine learning and seeing examples of the applications of this technology, I was looking for a way to use the techology myself. The solution was to make a simple 2D game, based on the Tron movies, where a player moves around an arena leaving a lethal trail behind them. Then, using a slightly modified form of the Evoneat Library, I was able to connect the games AI controller to the neural networks.

Training

Training The NEAT algorithm attempts to simulate evolution, so a system was created where two AIs would play each other at random. They would be scored on how long they lasted, complexity of maneuvers, and whether or not the AI won. In principal, this made sense. In practice however, because each AI only played one other, AIs would lose points if their random opponent lost too early into the game. After 1500 generations of evoltion, some collision avoidance began to develop, but only in some directions.

Survival Mode

Survival In an attempt to resolve the issues of two AIs impacting each other's scores, a survival mode was created where each AI only had to last as long as it could without leaving the bounds of the screan, or crossing their own path. This had better results but ultimatly, this problem is not easily modeled with a neural network and they still struggled.

tronmachinelearning's People

Contributors

zenith08 avatar

Stargazers

 avatar

Watchers

 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.