Tic Tac Toe Game is a classic game implemented using HTML, CSS, and JavaScript. This game allows you to play against an AI with various difficulty levels, theme options, and additional features such as undo move, round reset, and game history tracking.
- Responsive Design: The game adjusts to different screen sizes, making it comfortable to play on both desktop and mobile devices.
- Multiple Themes: Choose from a variety of themes via the settings panel, including:
- Light (default)
- Dark
- Minimalist
- Ocean
- Forest
- Sunset
- Monochrome
- Retro
- Neon
- Pastel
- Autumn
- Space
- Colorful
- Cyberpunk
- Coffee
- Candy
- Beach
- AI Difficulty Levels:
- Easy: The AI makes moves randomly with minimal strategy.
- Medium: The AI uses a combination of basic strategy and random moves.
- Hard: The AI employs a Minimax algorithm (with a slight random element) to be nearly unbeatable.
- Game Controls:
- Undo Move: Revert the last two moves (both the player's and the AI's).
- Reset Round: Clear the board and start a new round.
- Reset Scores: Reset the scores for both the player and the AI.
- Game History: View a log of moves made during the game.
- Settings Panel: Customize the game by choosing your preferred theme, AI difficulty level, and player symbol (X or O).
- Launch the Game:
Open theindex.htmlfile in your preferred web browser. - Start Playing:
On the main screen, you will see the Tic Tac Toe board, score display, and status message. - Make a Move:
Click on any empty cell to place your symbol. After your move, the AI will respond after a brief delay. - Use the Controls:
Use the available buttons to change game settings, undo moves, reset the round, or reset scores. - Customize Settings:
Click the Game Settings button to open the settings panel and select your preferred theme, AI difficulty, or player symbol.