,

Day 13: Tic-Tac-Toe (In Progress)

Today I worked more on my Tic-Tac-Toe game. Today I used JavaScript to code the game moves. On the user’s turn, the game checks if the space is free and places the letter. On the computer’s turn a random number is generated, and then the correlating space is checked and the letter is placed.

I put a time delay on the computer’s turn so the computer doesn’t play at the same time as the user. I prevent the user from playing twice in a row, and display a warning if they attempt to. Tomorrow I plan to code the win check and a play again button.