https://github.com/nirmalakadali/tic_tac_toe-with-ai
I bet you can't win against AI
https://github.com/nirmalakadali/tic_tac_toe-with-ai
ai minmax-algorithm
Last synced: 3 months ago
JSON representation
I bet you can't win against AI
- Host: GitHub
- URL: https://github.com/nirmalakadali/tic_tac_toe-with-ai
- Owner: Nirmalakadali
- Created: 2023-12-16T07:42:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-16T08:09:29.000Z (over 1 year ago)
- Last Synced: 2025-02-05T08:52:34.327Z (5 months ago)
- Topics: ai, minmax-algorithm
- Language: HTML
- Homepage: https://nirmalakadali.itch.io/tic-tac-toe-with-ai
- Size: 12.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic-Tac-Toe Game
## Description
This is a simple implementation of the classic Tic-Tac-Toe game using Pygame and published using pybag library and itch.io website. The game allows a player to choose between playing as X or O and competes against an AI opponent.
## Features
- Choose to play as X or O.
- Play against an AI opponent.
- Visual representation of the game board.
- Game over messages indicating the winner or a tie.
- Option to play the game again.## How to Play
## In website
1. Click this url ([Click me](https://nirmalakadali.itch.io/tic-tac-toe-with-ai))
2. Click run game in the webiste
3. Wait for few seconds to load
4. Choose to play as X or O.
5. Make your moves by clicking on the desired empty cell.
6. The AI opponent will take its turn automatically.
7. The game will announce the winner or a tie when the game is over.
8. Click "Play Again" to start a new game.
## From Code Editor
1. Download the github repo
2. Unzip the folder
3. Run the script by executing `python main.py`.
4. Choose to play as X or O.
5. Make your moves by clicking on the desired empty cell.
6. The AI opponent will take its turn automatically.
7. The game will announce the winner or a tie when the game is over.
8. Click "Play Again" to start a new game.## Requirements
- Python 3.x
- Pygame library (`pip install pygame`)## Instructions for Running the Game
- From url there is no requirements
1. Ensure you have Python installed on your system ( For code editor)
2. Install the required Pygame library by running `pip install pygame`.
3. Run the game script using `python main.py`.## Screenshots

Thankyou