Take turns placing X and O on the grid. First to complete a horizontal, vertical, or diagonal line wins.
On 3×3, the AI plays perfectly so you can only draw. On 4×4 and 5×5, you have a chance to win.
X (first player) has a slight advantage, but with perfect play, 3×3 always ends in a draw.
Tic-Tac-Toe is a classic game where two players take turns marking X and O on a grid, aiming to complete a line. Simple yet strategic, it's also famous as a foundational example in game theory and AI.