Questions tagged [minimax]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Help checking my implementation of the Minimax Algorithmn for Project 0b in CS50 AI

""" Tic Tac Toe Player """ import math import copy X = "X" O = "O" EMPTY = None util = 0 def initial_state(): """ Returns ...
0
votes
0answers
5 views

CS50-ai Minimax algorithm is not responsive

I have implemented my minimax() algorithm. My ai is smart enough to find a solution that leads to a victory. However, it completely disregards the optimal move the enemy could do. This way, it is ...
0
votes
0answers
12 views

Why do the deepcopies in my minimax implementation (project 0b) look like they're getting altered?

The minimax function has a max function and a min function. The recursion takes place between them, where the max function calls the min function and the min, calls the max. While exploring a node, ...
0
votes
0answers
113 views

cs50ai tic tac toe minimax TypeError: '>' not supported between instances of 'NoneType' and 'float'

I'm working on the tic tac toe problem set. The whole game is working correctly, however I'm having some troubles kicking off the AI. I've been running the game with the computer doing random moves, ...