Top "Tic-tac-toe" questions

Tic Tac Toe is a popular exercise for beginning coders, as the finite resources and game mechanics can be easily grasped and represented in many ways.

Generate a list of all unique Tic Tac Toe boards

I would like to generate a text file containing all 19,683 Tic-Tac-Toe board layouts in the structure of 0 = Blank, 1 = X, and 2 = …

algorithm tic-tac-toe
Tic Tac Toe perfect AI algorithm: deeper in "create fork" step

I've already read many Tic Tac Toe topics on StackOverflow. And I found the strategy on Wikipedia is suitable for …

c# java algorithm tic-tac-toe
Make the computer never lose at Tic-Tac-Toe

I am working on a simple game of Tic Tac Toe code for C. I have most of the code …

tic-tac-toe minimax
Monte Carlo Tree Search: Implementation for Tic-Tac-Toe

Edit: Uploded the full source code if you want to see if you can get the AI to perform better: …

c# algorithm artificial-intelligence tic-tac-toe montecarlo
Tic-Tac-Toe AI: How to Make the Tree?

I'm having a huge block trying to understand "trees" while making a Tic-Tac-Toe bot. I understand the concept, but I …

c++ tree artificial-intelligence tic-tac-toe
Detect winning game in nought and crosses

I need to know the best way to detect a winning move in a game of noughts and crosses. Source …

algorithm tic-tac-toe
Code Golf: Tic Tac Toe

Post your shortest code, by character count, to check if a player has won, and if so, which. Assume you …

code-golf rosetta-stone tic-tac-toe
Tic Tac Toe - Detecting win, lose, or draw

This is a tic tac toe generator. Computer vs. Computer only, a little different than the usual Player vs. Computer. …

c# arrays tic-tac-toe
Tic Tac Toe recursive algorithm

I can see this question (or a similar one) has been asked a few times and I've searched google a …

c# recursion tic-tac-toe
How to determine game end, in tic-tac-toe?

I'm developing tic-tac-toe game, and I need algorithm to check when game ends(and who win). In 3x3 game I …

algorithm tic-tac-toe