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.
Live Website Demo https://tictactoe-ai-chammy.vercel.app/
Video Demo https://youtu.be/RUVBONqDwYU
- Play against AI with adjustable difficulty (Easy, Medium, Hard)
- Play against a friend
- Dark mode toggle
- Interactive game board
- Responsive design
- 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.
-
Clone this repository to your local machine:
git clone https://github.com/chaman2003/tictactoe-ai
-
Navigate to the project directory:
cd tic-tac-toe-cyberpunk-edition -
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Open your web browser and go to
http://127.0.0.1:5000.
- 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!
If you'd like to contribute to this project, please fork the repository and submit a pull request.
This project is open source and available under the MIT License.
Made with ❤️ by Chammy