Skip to content

Web-based Tic Tac Toe game with AI opponent powered by the Minimax algorithm, built using Flask (Python) backend and HTML/CSS/JavaScript frontend, featuring adjustable AI difficulty and responsive UI.

License

Notifications You must be signed in to change notification settings

chaman2003/tictactoe-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe - Cyberpunk Edition

Welcome to the Tic Tac Toe - Cyberpunk Edition! This web application allows you to play Tic Tac Toe against an AI or a friend. It features a dynamic dark/light mode and utilizes various technologies for a seamless gaming experience.

Description:

Features

  • Play against AI with adjustable difficulty (Easy, Medium, Hard)
  • Play against a friend
  • Dark mode toggle
  • Interactive game board
  • Responsive design

Technologies Used

  • HTML: For the structure of the web application.
  • CSS: For styling and design.
  • JavaScript: For game logic and interactivity.
  • Flask: As the backend framework.
  • Minimax Algorithm: For AI decision-making.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/chaman2003/tictactoe-ai
    
    
  2. Navigate to the project directory:

    cd tic-tac-toe-cyberpunk-edition
  3. Create a virtual environment:

    python -m venv venv
  4. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  5. Install the required packages:

    pip install -r requirements.txt
  6. Run the Flask application:

    python app.py
  7. Open your web browser and go to http://127.0.0.1:5000.

Usage

  • Choose to play against an AI or a friend from the start screen.
  • Select the AI difficulty if playing against the AI.
  • Enjoy the game!

Contributing

If you'd like to contribute to this project, please fork the repository and submit a pull request.

License

This project is open source and available under the MIT License.

Author

Made with ❤️ by Chammy

About

Web-based Tic Tac Toe game with AI opponent powered by the Minimax algorithm, built using Flask (Python) backend and HTML/CSS/JavaScript frontend, featuring adjustable AI difficulty and responsive UI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors