Sure! Below is an example of a XOX (Tic-Tac-Toe) game played against the computer using JavaScript. The game is implemented in a single HTML file, enclosed in script tags, and can be played on a smartphone.
XOX Game
To play the game, simply open the HTML file in a browser. The XOX game will be displayed, and you can make moves by tapping on the cells. The computer will automatically make its move, and the game will continue until a player wins or it's a tie. After each game, the board will be reset for a new game.