{{htmlmetatags>metatag-robots=()
metatag-title=(EVOLUTION 10'S GENOTYPE AND PHENOTYPE)
metatag-keywords=(Evolution, BASIC 10 LINERS, GENOTYPE, PHENOTYPE, GAME, Commodore 64)
metatag-description=(In this small article, I will briefly describe some genetic mechanism inside the EVOLUTION 10 BASIC GAME.)
metatag-media-og:image=(::copertina_evolution10.jpg)
metatag-og:title=(EVOLUTION 10'S GENOTYPE AND PHENOTYPE)
metatag-og:description=(In this small article, I will briefly describe some genetic mechanism inside the EVOLUTION 10 BASIC GAME.)
}}
====== EVOLUTION 10'S GENOTYPE AND PHENOTYPE ======
**[[https://github.com/spotlessmind1975/evolution10|EVOLUTION 10]]** is an evolution based game for [[https://it.wikipedia.org/wiki/Commodore_64|COMMODORE 64]] home computer. In this game the player assumes the role of "selective pressure" in the evolution of a species. Given a target objective, he/she will have to choose two specimens from those proposed so that they can reproduce themselves and so he/she approaches to the expected result. This game is designed for a single player and it is text-based.
Despite its small size, this game features a complete genotypic representation system. That is, both a mechanism to represent the information stored in the genes and a mechanism, deterministic and clear, for the conversion of these genes in a well characterized individual (ie: the phenotype).
In this small article, I will briefly describe both aspects, referring to the game's source code how this information is represented.
===== THE GENOTYPE =====
{{ :evolution10:evolution10-genotype.png?nolink&600 |}}
Each individual in the game is described by an individual genetic code, called a genotype. This code corresponds to the juxtaposition of five genes, each of which is responsible for coding an aspect and providing instructions on how to generate the actual individual. Each gene contains a number ranging from 1 to 4, and represents specific information.
===== THE PHENOTYPE =====
{{ :evolution10:evolution10-genes.png?nolink&600 |}}
The illustration shows the possible alternatives, as the value contained in the gene varies. It is essential to underline that each gene can assume one and only one of these values, and that a combination of five genes uniquely determines how the individual will appear.
{{ :evolution10:evolution10-example.png?nolink&600 |}}
For example, the genetic sequence 12342 encodes an individual as shown. By changing a single gene, the individual's appearance will change dramatically.
\adsense\
===== THE MIXING =====
When a player selects the future two progenitors of the new generation, he/she is in effect choosing two individuals whose "blending" of the genetic code will determine the progeny.
The basic rule of shuffling the genetic code is that both parents participate in the formation of the child's genetic code. However, they do not necessarily participate in it in equal measure.
{{ :evolution10:evolution10-mixing.png?nolink&600 |}}
In practice, each of the child's genes will randomly take one of the genes of one of the parents. As a result, the child will look a little like the first parent and a little like the second parent. It is possible, although rare, that he takes characteristics from a single parent. In that case, the other parent's contribution will be ignored.
===== THE MUTATIONS =====
Since the mixing is only between existing genes, a random mutation mechanism comes into play. This mechanism simulates both defects in the mixing mechanism of the genetic code and actual environmental changes.
{{ :evolution10:evolution10-mutation.png?nolink&600 |}}
Let's consider the example of the previous mixing. In this case, it is possible (although not certain) that one of the genes is not passed on intact from either the first or second parent. In such a case, the appearance the individual will have will be similar to that of his siblings, but to some extent it will be different.
===== CONCLUSIONS =====
In conclusion, the **[[https://github.com/spotlessmind1975/evolution10|EVOLUTION 10]]** game can be seen as an attempt, albeit limited by the conditions of the race in which it is participating, to illustrate how the theory of evolution works. In this regard, we suggest reading the following volume: [[https://amzn.to/3qwbvjb|L'orologiaio cieco. Creazione o evoluzione?]] di [[https://amzn.to/30luZvX|Richard Dawkins]].