3a. Game playing algorithm A variation of the two-player game Nim starts with a single stack of 7 tokens. At each move a player removes one, two or three tokens, leaving a non-empty pile. A player who has to remove the last token loses the game. Max plays first. Draw the complete game tree for this game. The utility function is defined as follows: Utility = -1 for a terminal state if Min wins the game Utility = 1 for a terminal state if Max wins the game Using the Minimax algorithm, assign utility values to all states in the game tree. If both Min and Max play a perfect game (always makes correct moves), who will win? Explain your answer and show the winning path(s) for Max or Min.
3a. Game playing
A variation of the two-player game Nim starts with a single stack of 7 tokens. At each move
a player removes one, two or three tokens, leaving a non-empty pile. A player who has to
remove the last token loses the game. Max plays first.
Draw the complete game tree for this game.
The utility function is defined as follows:
Utility = -1 for a terminal state if Min wins the game
Utility = 1 for a terminal state if Max wins the game
Using the Minimax algorithm, assign utility values to all states in the game tree.
If both Min and Max play a perfect game (always makes correct moves), who will win?
Explain your answer and show the winning path(s) for Max or Min.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images