Research Article

A Hybrid Fuzzy ANN System for Agent Adaptation in a First Person Shooter

Algorithm 10

Pseudocode for function to parse fuzzy set data.
line_start = 0
read file and put all data into input_string
for each weapon
     for each input variable
while newline character not encountered in
     input_string
line_length++
end of while
       copy data between line_start and line_length to
     line_string
     scan line_string for values and put them into
     adapt_FL_t structure
    line_start + = line_length+1
    line_length = 0
  end of for
end of for