Algorithm
GA (genetic algorithm) is similar to how biological genetics work in reality, where genes — your DNA — store information about the rest of your body. For example eye, skin and hair color, hair structure, body type, and height. In a GA, numbers represent various characteristics.
Combining NFT with BSC smart contract allows us to fusion horses (in a GA, it is called a crossover). It creates another unique token out of the other two, keeping some of the information (features) previous tokens had written in the smart contract.
Half of the horse’s genome and the other half of the horse's genome are set into a new, and unique fusion genome. The exact split of the genes can differ each time in the crossover, meaning that even two same fusions will have unique genomes. Just like in real life.
The key here is understanding that representing a genome is as simple as storing a few numbers. The crossover is a piece of code that takes two numbers (horses genomes) as input and produces a single number as an output (fusioned genome).
On the BSC blockchain, we can store data (like a genome), and perform calculations with that data using Smart Contracts.
Last modified 8mo ago