Simple Games using AI C++ Assignment 4: Simple Games using AI I. Description: In this project, you will develop an agent that proposes the next possible move in a Number TIC-TAC-TOE game using

Simple Games using AI C++

Assignment 4: Simple Games using AI I. Description: In this project, you will develop an agent that proposes the next possible move in a Number TIC-TAC-TOE game using
minimax adversarial search described in Week5. This game is a variation of the traditional Tic-Tac-Toe. One player uses the odd number between 1 to 9 and the other
player uses the even numbers between 2 to 8. The odd number player goes first. The winner is the player who completes a row of three numbers that add up to 15 (row
could be diagonal, horizontal or vertical). The output of the project will look similar as follows: You could assume that human takes the odd numbers while computer
takes the even numbers (range is from 1-9). First, you will need to display a table to start the game, you can use “-“ and “|” to draw the table
in text mode: ————————————————– | | | | ————————————————– | | | |
————————————————– | | | | ————————————————– Then you will prompt the user to enter their move first.
Each move is described by a pair (x,y) with x being the index of row, and y being the index of columns. For simplicity purpose, we assume that x has values in [0,2]
and y has values in [0,2]. For example, the user enter: 0 1 The program redraws the table to reflect the user’s move: an odd number is displayed in the node
corresponds to row 0 and column 1, as shown below: ————————————————– | | 3 | | ————————————————– | |
| | ————————————————– | | | | ————————————————– The program can sleep for a minute or so, then print
out the system’s move based on the calculation of minimax algorithm that we learned in Week 5. The table can then be re-drawn as follows:
————————————————– | 6 | 3 | | ————————————————– | | | |
————————————————– | | | | (This move is just for illustrative purpose only) You will repeat the above steps until the game is over.
There are three outcomes for the game: Either: the user wins: Please print out the congratulations to the user The system wins: Please print out “ You tried your
best. Thank you for playing”. Neither wins: Please print out “Tie game. Thank you for playing”.

find the cost of your paper