
Note: If anyone can think of a more elegant/efficient way, let me know. Step 3: Create a stored procedure to check if game is over or ongoing. INSERT INTO ttt_PlayerTurn (turn) VALUES ('X')

USE test ĬREATE TABLE ttt_PlayerTurn (turn VARCHAR(1) NOT NULL) Step 2: I was going to use a global variable to determine player turn, however unfortunately I found out MySQL does not support that.

Let me know if you think any of the steps could be done better.

In an attempt to practice conditional statements in SQL I decided to design a tic-tac-toe game with MySQL.
