Tic-Tac-Toe You vs. Another Player
This two player example of a Tic-Tac-Toe logic game shows the board and allows one player to play against another. Player 1 is X and the Player 2 is O. Select the square you want to put your marker into by clicking the box. You cannot occupy a square that is already occupied. The board and play moves are represented by ASCII characters. The first player to get three squares in a row wins. View the source code.