Comment Comment by icebraining The programmer will write an algorithm which is capable of generating a fitness function for each action based on its current goal(s). Then it'll decide what to do based on the action with the best fitness value. parent icebraining 15 years ago