I have an alpha beta pruning exercise that states the following (dots and boxes):
Next, a strategy game is described:
Starting with an empty grid of dots, players (A and B) take turns, adding a single horizontal or vertical line between two unjoined adjacent dots.
A player who completes the fourth side of a 1×1 box earns one point and takes another turn.
The game ends when no more lines can be placed. The winner of the game is the player with the most points.
The question is:
How do I Define an evaluation function to be used by the algorithm? Assume that MAX plays with color player A
A guiding photo