I have very little experience in AI programing and was wondering how I would make the AI choose the best option for it's self.
Small Sword = 1 dmg /cost: 1 point
Medium Sword = 5 dmg /cost: 5 points
Large Sword = 15 dmg /cost: 10 points
Total points = 12
So any player seeing this will know that the large sword is the better option, but I want the AI to know this.
I can't just tell it to use the highest costing attack because the values will be random.
I don't only want it to compare attacks it should also be able to decide what enemy to attack if there is more than one?