- This is a two player game, board size can be 3 x 3, 5 x 5, 7 x 7 or 9 x 9.
- The game includes two modes, AI player on or off.
- AI player off: when the game starts, players alternate clicking on available spots to claim them with symbol "X" or "O". If one player wins or the board contains no more available spots, a message would pop up for user to play again or exit the game. The "play again" action would clear the board and restart the game. The "exit the game" action would redirect the page.
- Ai player on: Human player is "X", AI player is "O". User selects the spot first for the first round then switch players after each round.
- Please click here to play the game GitHub page
- Select your player mode, play with AI or play it by yourself.
- Select your preferred board size. The corresponding board would appear once you've selected it.
- To win the game, player needs to get n X's or n O's in a row, either vertically, horizontally, or diagonally for n x n board size.
- Switch turns between two Players after each round.
- Counting scores for each player.
- Flexible board size according to player's selection.
- Options to replay the game or close the window via pop up message.
- Random colour display for each spot in the board.
- jQuery
- AI player mode with different difficulty levels.
- Make game rules harder (i.e., to win the game, players need to get n X's or O's in a row on a m x m board).