Thnx for giving me the motivation
i just wanted to have a professional approach with a proper agent toward the ai of players
if i would have to implement this game in PC what are my possible options and how i should pick the best 1 ?
The options are unlimited, team sports are also very complicated.
Personally i would have each agent run its own AI no fixed attack patterns, each agent decides on his own actions based the value of that action. (you can add a bit of randomness to this but high value actions should be far more likely than lower value actions).
The hard part is evaluating the value of an action or location since there are so many factors that contribute to it in a game like hockey.
Basic actions would be:
Move to location, (locations could be evaluated based on their defensive, offensive and support values and the agents role)
Pass to location,
Pass to player (prefer unmarked players or players in strong offensive locations)
Shoot (distance, angle ?, goalkeeper location, friendly agents in better locations ?)
Tackle (Do we have support if we fail ? is the agents location weak enough to warrant the risk ?)
good evaluation functions and diverse actions will give a fairly good result.
Edited by SimonForsman, 17 January 2014 - 11:17 AM.