ffavale / BotS

GNU General Public License v3.0
1 stars 0 forks source link

[Code] Create the function responsible for individual generation #7

Open xXBearTowerXx opened 2 years ago

ffavale commented 2 years ago

Create function inside the simulation class to generate all the individuals according to settings

xXBearTowerXx commented 2 years ago

Added a "chassis" for the method, it can be improved but right now it provides the population into an array based on the ratios and the population number inserted, if the ratios give decimal numbers when applied to the population number it will be rounded resulting in possible extra people in the generation

xXBearTowerXx commented 2 years ago

Optimized with less redundant code

ffavale commented 2 years ago

TODO: make sure populator can only be called once