Not sure if this is the right forum, please comment on the correct one. OK:
I am creating a game where the user inputs stats and attack values, and I want the ai to match its ability (so they are about equal) for example,
"Health": 1000,
"Shield blockage percent": 90%
MOVE#1
"Damage": 100,
"Accuracy": 100%
MOVE#2
"Damage": 1000,
"Accuracy": 10%
So if you use the shield, it will block 50 percent of the foe's damage Accuracy for MOVE#2, only 1/10 will hit. How do I calculate an equal foe, just replicate the stats? Any way to do it without replicating the stats?
MORE NOTES
The optimal game would last 7 moves and would be very close
Shielding counts as a move, and is a constant 90% for all people.
An optimal game is one that would be won or lost by 1-2 turns.
The first thing you need to do is figure out a constant
dpt, or damage per turn. calculated by doing damage/(accuracy as a decimal). Each person would have 3 moves that have the samedpt:dpt = 100(must be constant)computer stats are
dpt * 7 = healthandhealth/7 = dptcalculate moves,
complete