Skip to content

its a game, designed and developed with responsive UI/UX for both mobile and pc

Notifications You must be signed in to change notification settings

chinnanj666/tictactoe

Repository files navigation

Tic Tac Toe

Engage in a classic game of Tic Tac Toe with an intelligent AI, offering a challenging and strategic gameplay experience with configurable difficulty levels.

Tic Tac Toe Animation

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.
  • Clear Turn Tracking: Stay informed about whose turn it is with a dedicated display that tracks the game's progress.
  • Seamless Reset: Effortlessly restart the game at any time, allowing you to refine your strategy or challenge yourself (or your friend) anew.
  • Statistics Tracking (Optional): Keep track of your performance against the AI opponent across different difficulty levels. This can be implemented to show win/loss ratios, average game time, etc.
  • Customization Options (Optional):
    • Selecting different board sizes (e.g., 3x3, 4x4, 5x5(update soon....) to introduce an additional layer of strategic complexity.
    • Choosing various visual themes to enhance visual appeal.
    • Adjusting sound effects and background music to suit their preferences.

Installation

Prerequisites

  • Node.js and npm (or yarn) installed on your system. You can download them from Node.js.

Steps

  1. Clone the Repository:
    git clone https://github.com/chinnanj666/tictactoe.git

2.Navigate to the Project Directory:

cd tic-tac-toe

3.Install Dependencies:

npm install

or

yarn install

if you prefer using yarn.

4.Start the Development Server:

npm run dev`

Contributions

Any feature requests and pull requests are welcome!

Usage

Once the development server is running, you'll be presented with a web-based Tic Tac Toe interface. Select the desired difficulty level or game mode (Singleplayer/Multiplayer,easy,medium,hard), and start playing! Take turns making moves by clicking on the empty squares on the board. The AI will automatically make its moves based on the Minimax algorithm (in Singleplayer mode,hard).

License

The project is under MIT license.

tictactoe