An efficient way to give gifts in Stardew Valley

I was playing Stardew Valley recently... well, it consumed much of my weekends...

In the game, the player has to give gifts to all villagers to keep a good relationship with them. There is an official page displaying each one's preference, wiki. However, my life will be much easier if I can minimize the amount of distinct gifts I carry every day. When there is an optimization question, there is an analytical solution 🙂

My approach:

Use wiki's data as input, then identify the items that are favored by more than one villagers, and easy to obtain regardless of the a result, I can arrange production and carriage easily and efficiently.


A network graph that shows how villagers are connected by gifts.


Source codes:

Original dataset:

Vector graph output:

One thought on “An efficient way to give gifts in Stardew Valley

Leave a Reply

Your email address will not be published. Required fields are marked *