Simulate the working of TicTacToe game extended to three players with coins X, O and T with the below sample larger game board of dimension
Simulate the working of TicTacToe game extended to three players with coins X, O and T with the below sample larger game board of dimension 6*6. The first player to match any four consecutive coins in the same row or same column or same diagonal wins. A sample state of the game board is given below for reference. Your program must start from empty configuration.
a. You are free to choose your own static evaluation function. Justify your choice of static evaluation value design and explain with a sample game state. Do not use any machine learning model for the evaluation function. b. Similar to the virtual lab example, one of the players must be a human ie., it must get dynamic inputs from us. The other two players must be simulated using the program. c. Implement Python code for the design under part a, using Minimax Algorithm.
\begin{tabular}{|c|c|c|c|c|c|} \hline X & & & & X & \\ \hline & X & O & & T & \\ \hline & & O & T & T & \\ \hline & & T & T & O & \\ \hline & & X & & & O \\ \hline & & & & & \\ \hline \end{tabular}Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started