Tic Tac Toe App
The app consists of a 3×3 grid of buttons where two players take turns marking their symbol (X or O). A label displays whose turn it is, and another button allows resetting the game.
Interface Design:
A TableArrangement holds 9 buttons for the Tic Tac Toe grid.
A Label shows messages like “Player X’s turn” or “Player O wins!”
A Reset button clears the board for a new game.
A variable stores the current player (X or O).
Another list keeps track of the board state.
When a player taps a button, the app:
Marks that button with X or O.
Checks for a winning combination or a draw.
Switches turns to the next player.
The Reset button clears all cells and restarts the game.