Skip to content

Commit

Permalink
web
Browse files Browse the repository at this point in the history
  • Loading branch information
brakdag committed Dec 2, 2021
1 parent 0eb9ca8 commit 9ba19a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Flappy Learning ([Demo](http://xviniette.github.io/FlappyLearning/))
# Flappy Learning ([Demo](http://brakdag.github.io/FlappyLearning/))

Program that learns to play Flappy Bird by machine learning ([Neuroevolution](http://www.scholarpedia.org/article/Neuroevolution))
Program that learns to play Flappy Bird by machine learning (tensorflowjs)

![alt tag](https://github.com/xviniette/FlappyLearning/blob/gh-pages/img/flappy.png?raw=true)

### [NeuroEvolution.js](http://github.com/xviniette/FlappyLearning/blob/gh-pages/Neuroevolution.js) : Utilization
### [NeuroEvolution.js](http://github.com/brakdag/FlappyLearning/blob/gh-pages/Neuroevolution.js) : Utilization
```javascript
// Initialize
var ne = new Neuroevolution({options});
Expand All @@ -30,7 +30,5 @@ ne.set({options});
var generation = ne.nextGeneration();

//When an network is over -> save this score
ne.networkScore(generation[x], <score = 0>);
generation[x].networkScore(score);
```

You can see the NeuroEvolution integration in Flappy Bird in [Game.js](http://github.com/xviniette/FlappyLearning/blob/gh-pages/game.js).
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<button onclick="elite()">elite</button>

<br/>
<a href="http://github.com/xviniette/FlappyLearning">GitHub Repository</a>
<a href="http://github.com/brakdag/FlappyLearning">GitHub Repository</a>
<script src = "tf.min.js"></script>
<script src = "NeuralNetwork.js"></script>
<script src = "Neuroevolutiontf.js"></script>
Expand Down

0 comments on commit 9ba19a4

Please sign in to comment.