https://github.com/barandev/tic-tac-toe-with-javascript
A simple Tic Tac Toe game implemented in JavaScript and Python Flask, featuring two-player and vs. computer modes.
https://github.com/barandev/tic-tac-toe-with-javascript
ai flask game-development javascript python tic-tac-toe two-player-game vs-computer web-development
Last synced: 10 months ago
JSON representation
A simple Tic Tac Toe game implemented in JavaScript and Python Flask, featuring two-player and vs. computer modes.
- Host: GitHub
- URL: https://github.com/barandev/tic-tac-toe-with-javascript
- Owner: BaranDev
- License: mit
- Created: 2024-02-27T01:43:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T12:33:43.000Z (over 1 year ago)
- Last Synced: 2024-07-02T17:08:55.836Z (over 1 year ago)
- Topics: ai, flask, game-development, javascript, python, tic-tac-toe, two-player-game, vs-computer, web-development
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tic Tac Toe Game
This repository contains a simple Tic Tac Toe game implemented in JavaScript and a Flask web application to serve the game.
## Instructions
### JavaScript Implementation (script.js)
1. **Getting Started**: To start playing the game, open `index.html` in a web browser.
2. **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.
3. **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.
### Python Flask Web Application (main.py)
1. **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`.
2. **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.


[](https://github.com/barandev/Tic-Tac-Toe-with-Javascript/blob/main/LICENSE)
[](https://github.com/barandev/Tic-Tac-Toe-with-Javascript/issues)
[](https://github.com/barandev/Tic-Tac-Toe-with-Javascript/pulls)
[](https://github.com/barandev/Tic-Tac-Toe-with-Javascript/stargazers)
[](https://github.com/barandev/Tic-Tac-Toe-with-Javascript/network)