Genetic algorithm for optimization in game playing agent heuristic evaluation function
This is in response to an answer given in this question: How to create a good evaluation function for a game? , particularly by @David (it is the first answer). Background : I am using a genetic algorithm to optimize the hyper parameters in a game playing agent that is using minimax / alpha beta pruning (with iterative deepening). In particular, I would like to optimize the heuristic (evaluation) function parameters using a genetic algorithm. The evaluation function I use is: f(w) = w * num_my_moves - (1-w) * num_opponent_moves The only parameter to optimize is w in [0,1]. Here's how I