This is a basic web-based tic-tac-toe game that allows two players to play tic-tac-toe on a single device. It's built using HTML, CSS, and JavaScript.
- 3x3 game grid
- Two player gameplay (X and O)
- Restart game functionality
- Responsive design for desktops
You will need a modern web browser to run this game. Recommended browsers include:
- Google Chrome
- Mozilla Firefox
- Safari
- Microsoft Edge
To run the game, simply clone this repository or download the files to your local machine. Open the index.html
file in your preferred web browser to start playing.
index.html
- The main HTML document containing the structure of the game.styles.css
- Contains all the styling for the game.script.js
- Contains all the logic required to handle game operations.
- The game starts with player X's turn.
- Click on any empty cell to make a move.
- Play alternates between X and O.
- The first player to align three of their marks (X or O) vertically, horizontally, or diagonally wins.
- Click the "Restart Game" button to clear the board and start a new game.
Feel free to fork this repository and submit pull requests. You can also open issues if you find any bugs or have feature suggestions.
This project is free to use and does not currently have a specific license.
I'm making an update on my iPad.