Simply put, I would like to know any easy way to find the largest value in an array of integers.
More specifically...
I have two arrays, players and enemies. And a third 2d array called threat. When a player attacks an enemy they get threat on the enemy. For example, Let's say player[1] attacks enemy[1] for 27 "threat." the value of threat[1][1] would be 27. Then let's say that player[2] also attacks enemy[1] but only for 20 "threat." Enemy[1] would have the most threat on player[1]. Once all of the players have had their turns, they all have varying threat on varying enemies. I want to be able to find out which player has the most threat for each individual enemy easily. I hope that is clear enough.