This is the game tic tac toe written entirely in T-SQL. There are multiple modes:
-
'free' mode (default), the user plays with both X and O
-
'easy' mode, the user plays against an AI that plays randomly
-
'hard' mode, the user plays against a smarter AI
-
'invincible' mode, the user plays against an unbeatable AI
Here's an easy game I won against the AI:
Here's an online simulation on my (website)[https://roumache.com/en/sql-tic-tac-toe/]