Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Cazala committed Jan 6, 2017
1 parent c017f79 commit aa0572b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Expand Up @@ -133,8 +133,8 @@
<div id="genetic-algorithms" class="about-block">
<span>Genetic Algorithms</span>
<div>
<p><b>Population:</b> The population of fishes is randomly generated with random values for their DNA. The genotype of a fish consists basically on 2 variables (mass and hue), which then produce the phenotype of the fish (color, size, max speed, range of view, maturity threshold, bite size, etc).
<p><b>Selection:</b> Fishes are born with a certain amount of energy that they will spend to move (swim), when they run out of it they die. They can eat food to gain energy, and also they can eat other fishes that are smaller than them (less than half of their mass). The more energy they can collect, the longer they will live.</p>
<p><b>Population:</b> The population of fish is randomly generated with random values for their DNA. The genotype of a fish consists basically on 2 variables (mass and hue), which then produce the phenotype of the fish (color, size, max speed, range of view, maturity threshold, bite size, etc).
<p><b>Selection:</b> Fish are born with a certain amount of energy that they will spend to move (swim), when they run out of it they die. They can eat food to gain energy, and also they can eat other fish that are smaller than them (less than half of their mass). The more energy they can collect, the longer they will live.</p>
<p><b>Reproduction:</b> Agents can spawn offsprings, they have to reach a certain age (it varies depending on the mass of the fish), once they do, they are able to mate, therefore perpetuating their genes. When they mate, the fertility threshold is increased again, and if the fish collects enough food to live longer it can mate several times, but the older the fish gets the more energy consumes to swim, so in the end every fish dies.</p>
<p><b>Crossover and Mutation:</b> The offsprings are a crossover of the genes of their parents (if one parent is big and the other one is small, the child will be medium sized, if one is red and the other one is blue, the child will be purple), but a really small fraction of the offsprings get mutated genes, introducing new features to the population.</p>
</div>
Expand All @@ -143,4 +143,4 @@
<span id="footer">click anywhere to <b>enter</b> behaviour inspector</span>
<canvas id="canvas"></canvas>
</body>
</html>
</html>

0 comments on commit aa0572b

Please sign in to comment.