Be the first player to get N pieces in a row — horizontally, vertically, or diagonally. N equals the board size (3 for 3×3, 4 for 4×4, 6 for 6×6).
Players take turns placing their mark (X or O) on an empty cell.
Click any empty cell on the board to place your mark. In AI mode, the computer responds automatically.