Tic-Tac-Toe You vs. Computer
This example of a Tic-Tac-Toe logic game shows the board and allows the player to go first. Player is X and the computer is O. Select the square you want to put your X into by clicking them. You cannot occupy a square that is already occupied. The board and play moves are represented by graphics. The first player to get three squares in a row wins. View the source code.