Take turns marking squares on the 3×3 grid. You are X, the computer is O. Get three of your marks in a row — horizontally, vertically, or diagonally — to win. If the board fills up with no three-in-a-row, it's a draw.