4 ms·
This doesn’t take into account the need for scarecrow placement to ward off crows. This seems to account only for basic sprinklers that water 4, it would be mo
by prepend 7y ago
This doesn’t take into account the need for scarecrow placement to ward off crows.
This seems to account only for basic sprinklers that water 4, it would be more useful to account for 8 and 24 models.
- djsumdog 7y agoYea I was hoping this would talk about scarecrows and those little huts you can get later than can automatically harvest crops up to 15 squares away. You'd want to optimize for all three (with the huts, you can even plant vine plants right new to each other; the little creatures can get to them even though you can't). Would the optimal placement for iridium sprinkers just be in the center of their coverage area? Seems like this script would always have waste areas too.
- joshvm 7y agoIt seems like this is a variant of the N-queens problem, which you can solve by backtracking. So it should be fairly easy to modify to include more sprinklers including using tiles for other things like scarecrows. And actually it's a more complex problem - what happens if you include crops which you can't walk over, but have repeat harvest (like beans)? Back in the day of Harvest Moon you often had to waste a square because you couldn't access the centre. In the original game(s) there were other constraints like seeds being scattered in a 3*3 grid centred on you. You couldn't sow individual tiles. At least now you don't waste 1/9 of your seeds on inaccessible tiles. It would be fun for Stardew to model things like companion cropping, where you could get a productivity boost by planting certain things next to each other. Or if trees/buildings would shade areas. Or if pests were actually a thing, but maybe that would give real life gardeners PTSD when your whole farm dies of blackfly.