Questions tagged [tic-tac-toe]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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
95 views

TicTacToe task: PyGame display not rendering

For some reason, the PyGame TicTacToe display is not showing. It just hangs at this: This is the runner.py: import pygame import sys import time import tictactoe as ttt pygame.init() size = width, ...
0
votes
0answers
26 views

unhashable type: list

I posted the question on other forums but couldn't solve the problem yet. When I run runner.py for Tic Tac Toe project, I get an error: runfile('C:/Users/Acer/Downloads/tictactoe/tictactoe/runner.py', ...
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, ...
1
vote
1answer
1k views

CS50AI Tic tac toe game with minimax algorithm: I keep receive Invalid move

So my code run, but only the first move, after that I keep getting "Invalid move" message (which was declared by myself) in my result function. I'm not sure what's wrong with my result function, or I ...