My Civmanager Program is almost ready except that I am not confident about rush buying formula. Here's the variables to be considered:
Building Item Type (1=unit, 2=improve,3=wonder)
Building Item Total Shield (multiplied by 10 or user input number at the beginning of rules.txt)
Available intermediate building items and their Shield Costs.
Money needed to buy incrementally.
I have all the above variables figured out. However I'm not sure I have found the minimum cost in money to buy a unit. This is because that one can first buy an improvement then switch to unit, or vise versa. Can anybody help? (Well, it is one of the rare situations when a PhD in math needs help in a math question.
Building Item Type (1=unit, 2=improve,3=wonder)
Building Item Total Shield (multiplied by 10 or user input number at the beginning of rules.txt)
Available intermediate building items and their Shield Costs.
Money needed to buy incrementally.
I have all the above variables figured out. However I'm not sure I have found the minimum cost in money to buy a unit. This is because that one can first buy an improvement then switch to unit, or vise versa. Can anybody help? (Well, it is one of the rare situations when a PhD in math needs help in a math question.
Comment