Question: Extend the algorithm you designed for Exercise 6.2 so that it can evaluate positions that are nonterminalin other words, positions where the game has not
Extend the algorithm you designed for Exercise 6.2 so that it can evaluate positions that are nonterminal—in other words, positions where the game has not yet finished. Your score should be positive for an advantage to crosses, and negative for an advantage to noughts.
data from exercise 6.2
Write an algorithm in pseudo-code, or a programming language of your choice, that evaluates a position in tic-tac-toe. Your static evaluator should give 0 for a drawn position, 1 for a won position for crosses, and 1 for a won position for noughts.
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
To extend the algorithm to evaluate nonterminal positions in tictactoe we need to consider several factors such as potential winning lines current threats and opportunities for both crosses X and noug... View full answer
Get step-by-step solutions from verified subject matter experts
