AI Tic Tac Toe with the Minimax Algorithm

AI Tic Tac Toe with the Minimax Algorithm

플레이어

0

평점

4.5★

카테고리

Tic-Tac-Toe

정보

The AI Tic Tac Toe game below uses the MiniMax Algorithm and allows you to face your most competitive/ smartest opponent! The logic behind this algorithm is shown on the image on right. As you can see, the diagrams outline scenarios where the number of possibilites are either minimized or maximized. As you can see, the diagram is a Data Sctructure - tree. We initially set a range from (-1,0, 1) that will determine a Loss, Tie, or Win, respectively. We have set the computer to be X. A node's siblings represents the move for either X or O player. The Computer needs to determine what the minimization for X and Maximization for O given that it wants to win each scenario (+1) and avoid the loss scenarios (-1). We then use recursion to take the Maximization/ Minimization at a node and it's siblings where we want the computer to take either the shortest or the longest route.

제작자

Maan Patel

게임 스튜디오

카테고리

Tic-Tac-Toe

유형

미니 게임

출시

최근

플레이어

0

같은 카테고리

더 많은 Tic-Tac-Toe 게임

가장 인기

이것도 좋아하실 거예요

다른 플레이어들이 지금 좋아하는 인기 게임.