MarkosKon / hsdeckideas

A random deck generator for Hearthstone.
https://hsdeckideas.netlify.com
2 stars 1 forks source link

Choose relevant archetype based on a score not only on card count #10

Open MarkosKon opened 5 years ago

MarkosKon commented 5 years ago

Based on this comment:

Problem

When we decide for an archetype we check each of archetype's priorities that are satisfied by the deck and we sum them up.

For example for the following Druid deck:

x2 The Forest's Aid
x2 Mecharoo
x2 Acornbearer
x2 Savage Roar
x2 Defender of Argus
x2 Crystal Power
x2 Wrath
x2 Power of the Wild

x1 Violet Teacher
x1 Zilliax
x1 Cenarius

We have for the Control Archetype 22 cards that are satisfied:

aoe: 0 hard removal: 0 small removal: 4 value: 3 card draw: 2 heal: 2 cost is 2: 5 (They are 6 but we only need 5) cost is 3: 2 cost is 4: 3 cost is 5: 1

and for flood the total count is 16. Seeing the cards one would expect that this deck would get label as flood not control.

Solution

A solution is to flag some priorities as important and double their score. For example for the control archetype we have 11 important (aoe, hard/small removal, value, card draw, heal) and 11 that are related to the mana curve.