In a game I have a sheep barn that can hold 120 sheeps. I can buy 0 month 3 month and 8 month old sheeps.
A sheep is able to reproduce at 8 month (will always create only 1 (0 month) sheep ) every 5 month cycle (so first born is 8+5 month, then every 5 month)
Here a table explaining the price,needs and production of a sheep:
| age > | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| buy price | 200 | 236 | 272 | 308 | 344 | 381 | 417 | 453 | 489 | 525 | 561 | 597 | 633 | 669 | 706 | 742 | 778 | 814 | 850 | 886 |