Giter VIP home page Giter VIP logo

neat-bot's Introduction

NEAT-bot

Unassisted game playing bot using NEAT.

This project was a part of the CS561 Artificial Intelligence course at IIT Guwahati.

Video demo : youtube

Requirements for running the script :

  1. Python3+
  2. PyGame1.9+

Most of the core NEAT code is inspired from the Java implementation by NeatMonster. His project is here : https://github.com/NeatMonster/NEATFlappyBird

How it works

This neuro-evolutionary game playing bot is capable of learning to play simple games by itself.

  • This implementation can be used to model any game playing bot, given the input and output of the neural network controlling the game inputs and an appropriate fitness function.
  • To demonstrate the use of NEAT we made a simple 2D helicopter flying game and used our implementation to power the bot.
  • In the first few generation the bot is terrbile at playing the game, colliding with the walls every now and then. All initial movement is a result of a randomly generated neural network.
  • The fitness of the bot depends on number of pipes it crosses without colliding.
  • Better off-springs are generated after every generation on the basis of this fitness function.
  • The structure of the neural network changes over every generation based on the fitness as better performing individuals are mated into the next generation.
  • In every generation the neural networks train themselves and eventually learn when to lift the helicopter up/down in order to avoid collision.
  • The results eventually converge to a point where the bot is almost unbeatable at the game.

neat-bot's People

Contributors

kavishdahekar avatar nihaljain avatar

Watchers

 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.