Tag Archives: TicTacToe

Tic-Tac-Toe in Fence Shadow

Tic-Tac-Two

By Riley Major, 2018-08-08 | Tic-Tac-Toe Series Part 1 / Part 2 (this article)

If a pile of matchboxes can learn to play Tic-Tac-Toe, then certainly I should be able to code a solution. With my predilection for databases, T-SQL was my tool of choice. But first, I needed to model the game with some sort of data structure. Unfortunately, as I learned, it’s not as simple as mapping some X and O values to a grid.

Continue reading

Tic Tac Toe Sticky Notes

Tic-Tac-T-SQL

By Riley Major, 2018-05-18 | Tic-Tac-Toe Series Part 1 (this article) / Part 2

Known as Noughts and Crosses across the pond, Tic-Tac-Toe is considered a “solved game“– meaning we can predict the outcome of the game assuming perfect play. In fact, Wikipedia says “it is straightforward to write a computer program to play tic-tac-toe perfectly“. Well then as a programmer, I ought to be able to do it.

Continue reading