Giter Club home page Giter Club logo

dodgegamegeneticalgorithim's Introduction

DodgeGameGeneticAlgorithim

A simple game of dodge the enemy, with a bit of machine Learning Genetic Algorithm to make it better

UPDATE 1/21/2021: -Fixed the crossover function, this previously had a 31.25% chance to get a parents connection and now 98.75% chance, this was a problem since it was deleting all valued connections

-Bigger fix is that after a few more projects (Car Driving and a Cell Evolution) one error I figured out that due to the crossover function there was a point where I set the childs connections for a certain node equal to the parents and that was in memory not creating a copy, but linking them so if you mutated the child it mutated the parent. This is changed to make a copy and now gets 6-8 average score with no hidden layers in like 20-30 generations and could probably go higher with more time/layers. Saw it get to 80+ score and I have the game stop at 200 score, since if you get there you pretty much can't lose so it's getting pretty close

Will keep coming back and updating this more if I find more improvements in my algorithim

All algorithims are self wrote, but the mutation functions exact values was influenced by CodeBullet's dinoGame as a lot of my machine learning ideas stem from him and Carykh (plus, I have no idea good values for mutations, I originally wrote another function entirely and was never evolving basically).

dodgegamegeneticalgorithim's People

Contributors

sophiewalden 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.