llkaspecialists.blogg.se

Make your own tic tac toe game online fill in tic tac toe
Make your own tic tac toe game online fill in tic tac toe









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')

make your own tic tac toe game online fill in tic tac toe

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.

make your own tic tac toe game online fill in tic tac toe

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

make your own tic tac toe game online fill in tic tac toe

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











Make your own tic tac toe game online fill in tic tac toe