Skip to content

Javascript Jurassic Chrome AI with NEAT. An AI, that plays Jurassic Chrome.

Notifications You must be signed in to change notification settings

lilixac/dino_neat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEAT:

NEAT stands for Neuroevolution of Augmenting Topologies. It is a genetic algorithm (GA) for the generation of evolving artificial neural networks.

Game

This is an example of Javascript Implementation of NEAT for the jurassic-chrome game. The dinosaur is implemented as a circle, and cactuses as rectangle.

How To

First, git clone the repo.

git clone https://github.com/lilixac/dino_neat.git

Then, navigate to src folder, then open index.html file in the browser. It should start automatically.

Or, you can run an express server and test it. (I was just testing how to create an express server.)

cd dino_neat
npm install
npm start

Then, load http://localhost:8000 in the browser.

Code

The main code for this is in src/js/sketch.js file.

The files in the src/js/lib/* are folders for NEATJS library.

p5.js library is used for shapes and collision.

About

Javascript Jurassic Chrome AI with NEAT. An AI, that plays Jurassic Chrome.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published