Welcome to Tic-Tac-Toe! This is a classic game implemented in HTML, CSS, and JavaScript, where you can play against another player or an AI.
- Player vs Player: Play against a friend on the same device.
- Player vs AI: Challenge the computer.
- Active Turn Indicator: Clearly shows which player's turn it is.
- Restart Game: Start a new game at any time.
- Main Menu: Easy access to choose the game mode.
- HTML: Structure of the game.
- CSS: Styles and animations.
- JavaScript: Game logic and user interface control.
- Player vs Player: Select "Player vs Player" to play against a friend.
- Player vs AI: Select "Player vs AI" to play against the computer.
- Click on any empty cell to place your symbol (X or O).
- The first player to align three symbols in a row, column, or diagonal wins!
- When the game is over, you can select "New Game" to start again or "Back to Menu" to return to the main menu.
- The game automatically checks the state after each move to determine if there is a winner or if the game ended in a draw.
- When playing against the AI, it makes random moves in the available cells.
index.html: Main structure of the page.style.css: Styles and animations for the game.script.js: Game logic and interface control.
- Download or Clone the Repository:
git clone https://github.com/A5TUT0/Tic-Tac-Toe.git
- Open the
index.htmlfile in your favorite web browser.
Hope you enjoy playing as much as I enjoyed creating it! 🎉 Created by Luis Fernández.