npm install to load all requirements
npm run dev to activate the webpack file watcher
Start the node server by running
node server.js or
npm run server.
This file contains a small node.js server to serve the react web app. It is also used by our heroku deployment (https://genetic-dino-2018.herokuapp.com/).
Contains a sample population and data from a 49. generation which includes a dino that is nearly perfect.
The extracted and adjusted chrome dinosaur runner code is located in the
game.js. Our neuronal network and everything related to that is in the
geneticAlgorithm.js performs all tasks like cross over, mutation and evolution of the dinosaur population.
The directory contains all React components. The base component is the App-Component in
app.js which is located in the root of this directory. The
layout folder contains all layout related components like the
NavBar-Component and the
GameContainer which renders all dinosaur maps and output charts.
The components of this output charts and the generation high score chart are located in the
misc contains a small component to render the Circle for the indicators of a dinosaur is still alive or not.
util.js- small generic methods
generationRunner.js- run and controle a generation on one map
index.js- entry point to inject our React app into the html
assetsdirectory - game relevant assets