I'm currently trying to prototype a RTS/Civ-like game based on statistical simulation of populations. To make it a RTS I indend to have part of the population be manifested as controllable units. So what I'm trying to achive is to have a good function to calculate the number of representatives available at a certain population size.
I'm not "good" at math but I think I want something similar to a logarithmic function, so the number of them grows slower the bigger the population.
What I currently have is just that,
Code: Select all
math.floor(math.log(popSize))
An estimation of how I want it to look
- popSize: representants
- <10 : 1-2
- <100 : 5-10
- <1000 : 10-20
- <1000000 : 100-200