Chromos

From Esolang
Jump to navigation Jump to search

Chromos is an esoteric programming language made by Areallycoolusername. It's based of of RNA, except it uses chromosomes instead of the RNA itself.

Commands

There are no specific commands recognized by the interpreter. This is due to the fact that chromosomes are fabricated by the user in the code. However, the order in which these chromosomes come in is recognized. In this language, valid chromosome names are int he form of two letters, such as this:

AB

this:

 Ab

this:

aa

or this:

bb

Of course, the letters are replaceable by any letter the user wants, as long as thay are letter sof the English alphabet, and either capital or lowercase. Capital letters are dominant traits, and lowercase letters are recessive traits.

Specifics

The interpreter starts by prompting the input of 23 chromosome pairs. The user is to specify this set with the command "/FE/", for female. Then, the interpreter prompts the user for 23 more chromosome pairs which is specified by "/MA/", for male. Once these chromosomes are put in, mixing occurs. The dominant trait in each pair is chosen for the offspring, unless the pair include both recessive traits, like "bb". The dominant chromosomes of the offspring are then printed, which allows for a successful program.