Microsoft Small Basic

Program Listing: ZNV196
' Tell TicTacToe to call PlayInFirstEmptySpot (recipe below) when it's X's turn

'Start TicTacToe

' Recipe for PlayInFirstEmptySpot

' Do the following 9 times

' if the tictactoe board is empty for current square you trying

' Play your piece on that square on the TicTacToe board

' and set the current value of i to 10

' Repeat