- #1
liquidFuzz
- 102
- 6
- TL;DR Summary
- Trying to optimize perk cards in a computer game
I have a game where heroes have a set of traits, or abilities. The level of the abilities are raised in two ways, by banner cards and/or by leveling the hero. The Banner cards and heroes don't match perfectly, rather a banner card can match 1 or 2 (sometimes 3) abilities of the heroes abilities. Being... me, i wrote some lines of code that iterated trough the possible permutations to find the optimal permutation in terms of maximizing the ability outcome for the heroes.
Now I wonder if there is a way of using optimization to solve similar problems.
The setup is as follows,
Hero 1 : A, D, F, R
Hero 2 : B,D,E,S
Hero 3 : A,E,R,T
Etc..
Banner Card 1 : A,B,C,D
Banner card 2 : A,F,R,E
etc...
Edit, I'm interested in optimization in terms of maximum number ability matching between heroes and banner cards.
Now I wonder if there is a way of using optimization to solve similar problems.
The setup is as follows,
Hero 1 : A, D, F, R
Hero 2 : B,D,E,S
Hero 3 : A,E,R,T
Etc..
Banner Card 1 : A,B,C,D
Banner card 2 : A,F,R,E
etc...
Edit, I'm interested in optimization in terms of maximum number ability matching between heroes and banner cards.
Last edited: