An open API service indexing awesome lists of open source software.

https://github.com/chinnanj666/advance-tic-tac-toe

An enhanced Tic Tac Toe game with multiple features including different difficulty levels, game modes, board sizes, themes, and sound effects. The game is compatible with both dark and light themes, ensuring a seamless and enjoyable experience on any device.
https://github.com/chinnanj666/advance-tic-tac-toe

advance advanced-programming html-css-javascript javascript tic-tac-toe

Last synced: 3 months ago
JSON representation

An enhanced Tic Tac Toe game with multiple features including different difficulty levels, game modes, board sizes, themes, and sound effects. The game is compatible with both dark and light themes, ensuring a seamless and enjoyable experience on any device.

Awesome Lists containing this project

README

        

# Tic Tac Toe

An enhanced Tic Tac Toe game with multiple features including different difficulty levels, game modes, board sizes, themes, and sound effects. The game is compatible with both dark and light themes, ensuring a seamless and enjoyable experience on any device.
Screenshot 2024-08-05 at 07 49 11

## Features

- **Intelligent AI**: Employing the minimax algorithm for strategic decision-making, the AI offers challenging gameplay with configurable difficulty levels.
- **Easy**: The AI prioritizes winning opportunities but might make some suboptimal choices.
- **Medium**: The AI balances winning opportunities with defensive maneuvers, posing a more strategic challenge.
- **Hard**: The AI rigorously analyzes all possible moves and selects the optimal one, presenting a formidable opponent.
- **Multiple Game Modes**:
- **Singleplayer**: Face off against the AI and hone your skills.
- **Multiplayer**: Play turn-based games with a friend and share the strategic fun.
- **Intuitive Interface**: Enjoy a user-friendly interface that seamlessly adapts for both mobile and web environments, ensuring a smooth and enjoyable gameplay experience on any device.
- **Visually Appealing Animations**: Enhance the game's aesthetics with captivating animations that add a touch of flair to every move.
- **Dark/Light Theme Toggle**: Easily switch between dark and light themes using the theme toggle button.
- **Customization Options**:
- Select different board sizes (e.g., 3x3, 4x4, 5x5) to introduce an additional layer of strategic complexity.
- Choose various visual themes (e.g., classic X/O, emoji-based, custom symbols) to enhance visual appeal.
- Adjust sound effects and background music to suit your preferences.
- **Statistics Tracking (Optional)**: Keep track of your performance against the AI opponent across different difficulty levels, showing win/loss ratios, average game time, etc.

## Getting Started

### Prerequisites

- Web browser (Chrome, Firefox, Safari, Edge, etc.)

### Installation

1. Clone the repository:
```sh
git clone https://github.com/chinnanj666/advance-tic-tac-toe-.git
```
2. Navigate to the project directory:
```sh
cd tic-tac-toe
```

### Running the Game

1. Open the `index.html` file in your web browser:
```sh
open index.html
```

## Usage

- **Mode**: Choose between Singleplayer or Multiplayer mode.
- **Difficulty**: Select the AI difficulty level (Easy, Medium, Hard) in Singleplayer mode.
- **Board Size**: Select the board size (3x3, 4x4, 5x5).
- **Theme**: Choose the visual theme (Classic, etc.).
- **Sound**: Toggle sound effects on or off.
- **Reset Game**: Click the "Reset Game" button to start a new game.
- **Dark/Light Theme Toggle**: Click the sun/moon icon in the top left corner to switch between dark and light themes.

## Contributing

1. Fork the repository.
2. Create your feature branch:
```sh
git checkout -b feature/YourFeature
```
3. Commit your changes:
```sh
git commit -m 'Add your feature'
```
4. Push to the branch:
```sh
git push origin feature/YourFeature
```
5. Open a pull request.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Acknowledgments

- Inspired by traditional Tic Tac Toe games.
- Thanks to all contributors and users for their support and feedback.