This repository contains a simple Tic Tac Toe game implemented in JavaScript and a Flask web application to serve the game.
-
Getting Started: To start playing the game, open
index.html
in a web browser. -
Game Modes:
- Two Player Mode: Click on the "Two Players" button to start a game where two players can play against each other.
- Vs. Computer Mode: Click on the "Vs. Computer" button to play against the computer.
-
Gameplay:
- Click on any empty cell to make your move.
- The game alternates between 'X' and 'O'.
- The game will notify you when someone wins or if it's a draw.
- Click on the "Reset" button to restart the game at any time.
- Click on the "Back" button to return to the main menu.
-
Running the Application:
- Ensure you have Python installed on your system.
- Install the required dependencies using
pip install -r requirements.txt
. - Run the Flask application using
python main.py
.
-
Accessing the Game:
- Once the Flask application is running, navigate to
http://localhost:8080
in your web browser to play the Tic Tac Toe game.
- Once the Flask application is running, navigate to