
Posts: 3822
Joined: 16 Sep 2007, 22:00
KaM Skill Level: Skilled
ICQ: 269127056
Website: http://lewin.hodgman.id.au
Yahoo Messenger: lewinlewinhodgman
Location: Australia
Inefficiencies with sharing cornfields
Why?
a) Sharing one large field means the farmer will on average work on tiles that are further away. Farmers choose a random field within 10 steps from below their door so if the farmer only has his own field there most of the tiles will be within 2-5 steps. If there is a large shared field there will be fields between 2-10 steps, so on average he has to walk further. More walking = more time wasted.
b) Much less significant: Farmers will sometimes try to take the same field, and the second farmer will have to walk to a new place when he realizes this. More walking = more time wasted.
First of all I tested to see how bad the problem is. Here's the layout I used in my tests (note: different layouts would give different results). Here's the results:
4 farms sharing 64 fields (16 fields each, more than enough to keep them busy):
917 corn produced after 4 hours
1 farm with 16 fields:
295 corn produced after 4 hours, so that's 4*295 = 1180 corn if there were 4 of them.
So 1180/917 = 1.287. This means with separate fields you'll get ~29% more corn than with shared fields! That's a massive difference. I also tried 4 farms with 81 fields (20.25 each), but the results were about the same (915 corn instead of 917)
So I made a simple change: Farmers normally take a random job within 10 tiles from below their door. Now they will take a job within 5 tiles of their door, and if no such job exists, they will take a job within 10 tiles. This means they "prefer" to work closer to their house. Here are the results:
4 farms sharing 64 fields:
1033 corn produced after 4 hours
4 farms sharing 81 fields:
1066 corn produced after 4 hours
So now you only get 14% extra corn with separate fields, and only 11% if you build a few extra fields for each farm (81 instead of 64). I'm quite pleased with these results, I think we'll use this change in the next release. Note that it IS still more efficient to have separate fields, but nowhere near as much as it was before. Maybe that adds more unintended strategy to the game? Separate farms it probably harder to fit into your base.
Any comments are welcome

Cheers,
Lewin.
P.S. I've attached the test maps.