improved mutation chance calculation

This commit is contained in:
Max Robinson
2021-11-28 23:13:09 -06:00
parent 6c41248bd6
commit 42957b0811

View File

@@ -151,7 +151,7 @@ class Organism {
}
calcRandomChance(prob) {
return (Math.random() * 100) <= prob;
return (Math.random() * 100) < prob;
}
attemptMove() {