by valbaca · 4y ago · 0 comments
1. base: how many Marines you have
2. dx: how many Marine-producers you have = X Marines / sec
3. d2x: how many Marine-producer-producers you have, your harvesting units = (X Marines / sec) / sec
4. d3x: how many harvester-producers you have, your bases
5. d4x: how many base-producers you have
Idle games also fall in this category: first you chop wood with a crap axe, then you use wood to upgrade to a better axe, eventually you assemble an axe factory.
Inverted pendulums use such advanced math as well: https://en.wikipedia.org/wiki/Inverted_pendulum
50 minerals per worker + 100 minerals per supply depot at some amortized rate.
You have a dampening term on workers/mineral patch which saturates between 2-3 workers. It’s pretty linear till then.
Then you get a new base and do it again.
The problem is you have both time and minerals (and supply, gas) as resources, which means there are multiple competing derivatives. I’d be interested in seeing if you can approximate the economy with derivatives alone but I think you’d have to have some discrete simulation.
https://en.wikipedia.org/wiki/Incremental_game
Universal paperclips is a famous one: https://www.decisionproblem.com/paperclips/index2.html
The faster you build construction units, the faster you can increase the amount of construction units you have available to build construction units more quickly.
Within a game, the "derivatives" start looping on themselves to keep the game balanced and interesting.
In SC2 it does for Zerg: their units are weaker than other races so in order to compensate that you have to reinforce faster which is done by having more hatcheries to mine more and produce extra larva.
In BW the only thing that pushes additional bases is using gas-heavy strategies since there's only 1 geyser per base with limited rate of gathering.