Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flappyBird/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Player {
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<replace
}
//---------------------------------------------------------------------------------------------------------------------------------------------------------
//returns a clone of this player with the same brian
//returns a clone of this player with the same brain
clone() {
var clone = new Player();
clone.brain = this.brain.clone();
Expand Down Expand Up @@ -211,7 +211,7 @@ class Player {
}

//---------------------------------------------------------------------------------------------------------------------------------------------------------
//fot Genetic algorithm
//for Genetic algorithm
calculateFitness() {
this.fitness = 1 + this.score * this.score + this.lifespan / 20.0;
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<replace
Expand Down