Research Article
A Hybrid Fuzzy ANN System for Agent Adaptation in a First Person Shooter
Algorithm 11
Pseudocode for function to parse weapon preference data.
while
not at end of input_string | if input_string[character_num] = “W” and | input_string[character_num+1] = “−” | line_start = character_num+2 | while newline character not encountered | line_length++ | end of while | copy data between line_start and | line_length to line_string | scan line_string for key and value | if key = weapon_name | array[weapon] = value | end of if | end of if | character_num++ | end of while |
|