Research Article
A Hybrid Fuzzy ANN System for Agent Adaptation in a First Person Shooter
Algorithm 5
Pseudocode for weapon selection function.
SelectBestWeapon() function | fzEval = EvalFuzzyWeapons() | pEval = EvalPerceptWeapons() | fzVal = GetWeaponFuzzyVals() | for each weapon | eval = FzEval*PEval*FzVal | if weapon is current weapon | eval *= 1.1 | end of if | if eval is highest value | best weapon = eval weapon | end of if | end of for | return eval weapon | end of function |
|