InSyst Project – Week 6

Posted by on December 12, 2019 at 6:47 pm.

Intelligent System FP – 12/12/2019 update

In this sixth post, we implemented how the AI in our Connect 4 game will generate their own heuristic value of each column in the board, in which the AI will use to determine which column is the best to insert the disk.

We made the function of the AI’s turn from the copy of the player’s turn function. The difference is that the AI will generate heuristic values on its own simulation board. The heuristic values will be returned from the functions made in last week.

As mentioned in the previous post, the last disk inserted is used to determine the heuristic value of each column. In this case, the AI will simulates on its own game board then tries inserting the disk to calculate the heuristic value for each column. The AI will then compare every column to decide which one has the best value.

Leave a Reply

You must be logged in to post a comment.