Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.13.0
metadata
title: Tic-Tac-Toe
emoji: ๐ฎ
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
๐ฎ Tic-Tac-Toe
A modern Tic-Tac-Toe game built with Python and Gradio featuring beautiful UI and smart AI opponent.
โจ Features
- Two Game Modes: Player vs Player and Player vs Computer
- Smart AI: Strategic computer opponent with win/block logic
- Beautiful UI: Modern design with animations and color-coded moves
- Score Tracking: Separate scoring for each game mode
๐ฎ How to Play
- Click "๐ Start Playing"
- Choose game mode (Player vs Player or Player vs Computer)
- Enter player names (optional)
- Click cells to make moves
- Get 3 in a row to win!
๐ฏ Game Controls
- ๐ New Game: Reset current game
- ๐ Main Menu: Return to main menu
- โ Back: Go to previous screen
๐ง Key Components
TicTacToeclass: Game logic and AIcreate_ui(): Gradio interface- Smart AI with win/block strategy
- Separate score tracking per mode
Enjoy the game! ๐ฎ