Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/)