# Hoard Master: new tool for optimizing your hoard upgrades

**URL:** https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986
**Category:** Community Content
**Created:** [April 22, 2020, 11:48am UTC](https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986 "2020-04-22T11:48:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ElDuderino](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@ElDuderino](https://community.gemsofwar.com/u/ElDuderino)
#### Post date: [April 22, 2020, 11:48am UTC](https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986/1 "2020-04-22T11:48:58Z")

</div>

Find the **optimal hoard upgrade strategy** tailored to your own treasure budget and save thousands of gold today with **Hoard Master™️** :

[http://el-hackerino.github.io/hoard-master](http://el-hackerino.github.io/hoard-master)

 ![Screenshot 2020-04-22 at 13.47.45](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/8/3/83e7516bfc94b325f3b13ad82f675ca3293f4ae3.jpeg)

---

<div class="post-metadata">

### Author: ![Lorien1973](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/lorien1973/32/75546_2.png) [@Lorien1973](https://community.gemsofwar.com/u/Lorien1973)
#### Post date: [April 22, 2020, 1:13pm UTC](https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986/2 "2020-04-22T13:13:38Z")

</div>

Nice tool. Odd results … why the 1 item in group 3?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/6/2/628fc27ce343995d62e156e5a798dabab0022905.jpeg)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/d/2/d2a7cada46b46e1034f801e3a9a77eb8f567ac37.jpeg)

---

<div class="post-metadata">

### Author: ![ElDuderino](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@ElDuderino](https://community.gemsofwar.com/u/ElDuderino)
#### Post date: [April 22, 2020, 1:51pm UTC](https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986/3 "2020-04-22T13:51:20Z")

</div>

Thanks for the feedback! I also noticed that some setups produce this single-troop combo, but I actually can’t find a better solution for those cases myself and I suspect that it is actually optimal. If you manage to find out how to improve it, please let me know.  
Regarding the second image - this happened because you set the initial level and quality to 0, which is lower than the minimum (1). Looks like browsers let invalid values through (Firefox paints a red border for me, but that’s it), so I may need to implement some corrective code. The solution is correct though, except for the quality numbers.  
EDIT: Added input validation, this shouldn’t happen anymore.

---

<div class="post-metadata">

### Author: ![Elroy](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/elroy/32/61150_2.png) [@Elroy](https://community.gemsofwar.com/u/Elroy)
#### Post date: [April 22, 2020, 1:59pm UTC](https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986/4 "2020-04-22T13:59:53Z")

</div>

Is there an option to tell it not to care about leftover XP and just go for the cheapest option?

---

<div class="post-metadata">

### Author: ![igniteice](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/igniteice/32/67904_2.png) [@igniteice](https://community.gemsofwar.com/u/igniteice)
#### Post date: [April 22, 2020, 2:01pm UTC](https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986/5 "2020-04-22T14:01:24Z")

</div>

This is great, I was using a spreadsheet for this but this is much better! ;-D

---

<div class="post-metadata">

### Author: ![ElDuderino](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@ElDuderino](https://community.gemsofwar.com/u/ElDuderino)
#### Post date: [April 22, 2020, 2:03pm UTC](https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986/6 "2020-04-22T14:03:29Z")

</div>

Leftover XP is for entering the XP you currently have. The goal is always to have 0 leftover XP after reaching the target level. EDIT: To be precise, leftover XP at the target level is actually ignored, the tool just optimizes the gold cost and tries to reach the target level or higher.

---

<div class="post-metadata">

### Author: ![ElDuderino](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@ElDuderino](https://community.gemsofwar.com/u/ElDuderino)
#### Post date: [April 22, 2020, 2:16pm UTC](https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986/7 "2020-04-22T14:16:33Z")

</div>

You’re welcome to try manually optimizing the solution using this spreadsheet (based on the original one I found here but simpler): [Hoard Optimization - Google Sheets](https://docs.google.com/spreadsheets/d/1NWY-41zyShP3IFBheQTH6B1CGgOgBgiU1wMYzoVuQp4/edit?usp=sharing)

---

<div class="post-metadata">

### Author: ![Lorien1973](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/lorien1973/32/75546_2.png) [@Lorien1973](https://community.gemsofwar.com/u/Lorien1973)
#### Post date: [April 22, 2020, 3:12pm UTC](https://community.gemsofwar.com/t/hoard-master-new-tool-for-optimizing-your-hoard-upgrades/62986/8 "2020-04-22T15:12:37Z")

</div>

I’ve bookmarked this - this is going to be extremely helpful with aiding my depression on the amount of gold required to increase hoards to max out delves 😉
