1
Programs / Re: Maybe some fun, maybe not
« on: April 12, 2021, 03:43:53 pm »
Sixty frames = one simulated year.
Changed the mechanics a bit. Added more color information.
Green - too young
Grey - too old
Pink - female
Blue - male
Solid Pink - take a guess
Things that affect the outcome.
Population density - the larger the starting population the more likely the simulation will sustain
Size of the circles - the larger they are the more plentiful will be the collisions
CONST min - The lower the more fruitful the society will be
CONST maxm - The higher "
CONST maxf - The higher "
The goal is to achieve simulation sustainability without too explosive growth and with not too many failures.
DISCLAIMER ABOUT THE CURRENT SETTINGS
It is just a numbers game. The settings are restricted to what is commonly possible. They are not 100% realistic. It is not meant to be politically correct. So just consider these settings being for a primitive society without written laws or moral standards.
The morally correct may want to increase the circle size and increase the minimum age! Etc.
Changed the mechanics a bit. Added more color information.
Green - too young
Grey - too old
Pink - female
Blue - male
Solid Pink - take a guess
Things that affect the outcome.
Population density - the larger the starting population the more likely the simulation will sustain
Size of the circles - the larger they are the more plentiful will be the collisions
CONST min - The lower the more fruitful the society will be
CONST maxm - The higher "
CONST maxf - The higher "
The goal is to achieve simulation sustainability without too explosive growth and with not too many failures.
DISCLAIMER ABOUT THE CURRENT SETTINGS
It is just a numbers game. The settings are restricted to what is commonly possible. They are not 100% realistic. It is not meant to be politically correct. So just consider these settings being for a primitive society without written laws or moral standards.
The morally correct may want to increase the circle size and increase the minimum age! Etc.
Code: QB64: [Select]
- TYPE OBJECT
- sw = _DESKTOPWIDTH
- sh = _DESKTOPHEIGHT
- Initialize
- repeat = 1
- WHILE repeat
- object(i).sex = 0
- object(j).sex = 0
- object(j).dt = 0
- count = 0
- object(k).age = 0
- object(k).dt = 0
- object(i).age = object(i).age + 1
- c = 2
- object(i).x = object(i).x + object(i).vx
- object(i).y = object(i).y + object(i).vy
- _LIMIT 60
- SUB Initialize
- object(i).sex = 0
- object(i).sex = 1
- object(j).sex = 2