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 examples/neuroevolution-flappybird/ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function poolSelection(birds) {
let r = random(1);

// Keep subtracting probabilities until you get less than zero
// Higher probabilities will be more likely to be fixed since they will
// Higher probabilities will be more likely to be picked since they will
// subtract a larger number towards zero
while (r > 0) {
r -= birds[index].fitness;
Expand All @@ -84,4 +84,4 @@ function poolSelection(birds) {
// Make sure it's a copy!
// (this includes mutation)
return birds[index].copy();
}
}