![]() Since minimax evaluates every state of the game (hundreds of thousands), a near end state allows you to follow up with minimax’s recursive calls easier (9).įor the following figure, assume the AI is X and the human player is O. Minimax in Codeįor this tutorial you will be working on a near end state of the game which is shown in figure 2 below. To completely grasp the Minimax’s thought process, let’s implement it in code and see it in action in the following two sections. If you are new to the concept of recursion, I recommend watching this video from Harvard’s CS50.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |