Question: Please use decision making algorithm ( e . g . alpha - beta pruning etc.. ) for computer moves The hexagon game involves two players,
Please use decision making algorithmeg alphabeta pruning etc.. for
computer moves
The hexagon game involves two players, who gradually construct a six
vertex undirected graph with solid and dashed edges. Player adds
solid edges, whereas Player uses dashes.
The players begin with a sixvertex graph that has no edges Figure
and add new edges, one by one; Player makes the first move. At each
move, a player has to add a new edge between two vertices that are not
connected by any old edge. Figure is an example of a midgame
position, where Player has to make the next move.
If Player constructs a solidline triangle, he loses the game; similarly, a
dashed triangle means a loss of Player For example, if the game ends
as shown in Figure then Player has lost since he has constructed the
dashed triangle
Implement a program for playing the hexagon game. Your program
should prompt the user to enter a player number or and then act as
the specified player. For example, if the user enters the program
should make the first move.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
