Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terieyenike/tic-tac-toe-with-flask
A simple, interactive Tic-Tac-Toe game built with Flask and Python. This game is generated using OpenAI technology, ChatGPT.
https://github.com/terieyenike/tic-tac-toe-with-flask
Last synced: about 8 hours ago
JSON representation
A simple, interactive Tic-Tac-Toe game built with Flask and Python. This game is generated using OpenAI technology, ChatGPT.
- Host: GitHub
- URL: https://github.com/terieyenike/tic-tac-toe-with-flask
- Owner: Terieyenike
- Created: 2024-09-12T13:58:36.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T14:22:41.000Z (2 months ago)
- Last Synced: 2024-09-13T02:38:50.656Z (2 months ago)
- Language: Python
- Size: 7.65 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic-Tac-Toe Game
A simple, interactive Tic-Tac-Toe game built with Flask and Python. This game is generated using OpenAI technology, ChatGPT.
![Tic-Tac-Toe Game Screenshot](https://pbs.twimg.com/media/GXQ8ezJWMAA3YNe?format=jpg)
## Features
- Play Tic-Tac-Toe against another player (AI)
- Responsive design for desktop and mobile
- Game state management with React hooks
- Win detection and game reset functionality## Installation
1. Clone the repository
2. Create a virtual environment: `python -m venv .venv`
3. Activate the virtual environment:
- On Windows: `venv\Scripts\activate`
- On macOS and Linux: `source .venv/bin/activate`
4. Install dependencies: `pip install -r requirements.txt`
5. Start the Flask development server: `python app.py`## Usage
Open the app in your browser and start playing! Click on empty cells to place your mark (X or O). The game will automatically detect wins or draws.
- Player 1 (Human): X
- Player 2 (AI): O## Technologies Used
- Flask
- Python
- CSS
- HTML## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)