Giter VIP home page Giter VIP logo

terry_rex's Introduction

forthebadge made-with-python

Python 3.6 LinkedIn-profile GitHub license GitHub followers GitHub stars

Terry_Rex

A genetically evolved dinosaur that is scared of Cactus!

The game is developed using Pygame and NeuroEvolution of Augmenting Topologies (NEAT) Algorithm is the brain of the Dino.

It alters both the weighting parameters and structures of networks, attempting to find a balance between the fitness of evolved solutions and their diversity.

NEAT is based on applying three key techniques:

  • Tracking genes with history markers to allow crossover among topologies
  • Applying speciation (the evolution of species) to preserve innovations
  • Developing topologies incrementally from simple initial structures ("complexifying").

This algorithm is so powerful that it learns the optimal policy to dodge cactus in under a minute.

The AI can take the actions of moving left, right or jump.

Cloning

$ git clone https://github.com/7enTropy7/Terry_Rex.git

Dependencies

$ pip3 install -r requirements.txt

Instructions

$ python3 t_rex.py

Now sit back and watch my AI play the game!

Training

Initial phase of training:

GIF-191101_110546

Finally after training:

GIF-191101_110810

Author

LinkedIn-profile

License

License

This project is licensed under the MIT License - see the LICENSE file for details

terry_rex's People

Contributors

7entropy7 avatar

Stargazers

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