From d2bf96abab6fa3c877b6197d7436591f5224829d Mon Sep 17 00:00:00 2001 From: Valeri Voev Date: Sat, 12 Mar 2022 14:33:05 +0100 Subject: [PATCH] Update ga.js Just a small typo in the comment which makes it more understandable --- examples/neuroevolution-flappybird/ga.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/neuroevolution-flappybird/ga.js b/examples/neuroevolution-flappybird/ga.js index da9585a..b750ce1 100644 --- a/examples/neuroevolution-flappybird/ga.js +++ b/examples/neuroevolution-flappybird/ga.js @@ -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; @@ -84,4 +84,4 @@ function poolSelection(birds) { // Make sure it's a copy! // (this includes mutation) return birds[index].copy(); -} \ No newline at end of file +}