Category "tic-tac-toe"

How do I fix the random selection and apply a minimax algorithm for choice?

for this TIC TAC TOE game, I'm new to coding so I'm not sure how can change the A.I to play more intelligently, I know it's with the use of a minimax algorithm

Algorithm to find binary value of all cells in (n x n) Tic-tac-toe board?

I found this great answer by Gary C, which uses bitwise operators and minimal number of comparisons to check for a win in Tic-tac-toe. The only issue is that th

Minimax Algorithm - Tic Tac Toe AI not selecting best move

I've been working on writing a minimax algorithm for my tictactoe game, but it doesn't seem to be choosing the correct move. It is possible to win against the c

How to write an unit test in Python in tictactoe code

--------- Global Variables ----------- # Will hold our game board data board = ["-", "-", "-", "-", "-", "-", "-", "-", "-"] # Lets us know

Making tic-tac-toe with Pygame, blit doesn't work

I'm making a tic-tac-toe game using Pygame. Everything is good except that I don't arrive to make image2 and image3, who correspond to X and O, appear even afte