❌⭕ TicTacToe Game

Classic TicTacToe game built with Python, Pygame, and Pygbag for web deployment

Back to Python Page

🎯 Overview

TicTacToe Game is a modern version of the classic strategy game, implemented in Python using Pygame for graphics and Pygbag for web deployment. Play against the computer or another player, aiming to align three marks in a row, column, or diagonal.

This project demonstrates:

🚀 Features & Mechanics

Classic Gameplay

Play TicTacToe against the computer (AI) or another player.

AI Opponent

Computer uses minimax algorithm for optimal moves.

Responsive Design

Playable on desktop and mobile browsers.

Restart & Exit

Restart with button, exit with button or menu.

Portfolio Colors

Uses your portfolio's color palette for a modern look.

Game Flow

🛠️ Technologies & Deployment

Pygbag Web Deployment

# Example build command python -m pygbag --build .

🎮 How to Play

Start Game

Run main.py locally or open index.html (web build) in your browser.

Make a Move

Click on a cell to place your mark (X or O).

Alternate Turns

Player X starts, then the computer (O) or second player moves.

Win or Draw

Align three marks to win, or fill the board for a draw.

Restart & Exit

Use the Restart or Close Game buttons at the bottom.

Controls

🌟 Highlights & Customization

🚦 Project Status

✅ Completed ✅ Tested ✅ Responsive ✅ Web-ready ✅ Educational

All features implemented and tested. Play locally or in your browser. Clean, secure, and optimized code for learning and fun!

Back to Python Page