Program 4, CS 463

Due at the beginning of class on Friday, October 23rd.

This assignment uses Minimax and Expectimax for the 5x5 tic-tac-toe game. You will program three strategies: One completely random, one using Minimax, against which you will play, and then expectimax, against which the random player will play.

The heuristic you will use is the following.
For every line (row, column, or one of the two diagonals), if there are exactly k X's and no )'s, then add k. If there are exactly k O's, then subtract k. Unless, of course, the game has already been won, in which casethe value is +100 for X winning, and -100 for O winning.

Your minimax and expectimax will search two deep, and then use the heuristic to evaluate the board.

Your random strategy is to choose one of the open squares (all with equal likelihood).

To do:

To hand in: