Skip to content

nicolasmafra/ai-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ai-js

Artificial Inteligence in JavaScript. Link: https://nickmafra.github.io/ai-js/genetic/index.html

This project is a web demonstration of genetic algorithm applied to a neural network to learn to play a simple platform game.

alt text

Parameters

  • Total robots: Quantity of AI robots in each generation. 1000 is a good value in computers, 100 in mobile.
  • Death percent: Amount of robots discarded in each generation (relative to total robots). They will be replaced.
  • Percent of live "champions": Amount of robot that will replicate (relative to not discarded robots).
  • Maximum quantity of mutations: number of iterations of a single neural network weight mutation.