This is a complete HTML file that implements a Tic Tac Toe game playable on a smartphone. The game board is displayed as a 3x3 grid of cells, and players can tap on the cells to make their moves. The game supports two players, 'X' and 'O'. After each move, the game checks for a winner or a tie. If a player wins or the game ends in a tie, an alert message is shown.
The game logic is implemented using JavaScript enclosed in script tags. The `printBoard` function is responsible for rendering the current state of the game board. The `checkWinner` function checks if a player has won the game. The `handleCellClick` function handles the logic when a player clicks on a cell.
To play the game, you can simply open the HTML file in a web browser on your smartphone. The game will be displayed with the initial empty board. You can then tap on the cells to make your moves. Enjoy playing!