Skip to main content

Python Tic-Tac-Toe with Flask & AI

Full-stack web application with Flask, SQLAlchemy persistence, and AI opponents using Strategy Pattern design

Python Flask SQLAlchemy Strategy Pattern AI REST API
Full-stack Python web application with AI opponents and Strategy Pattern design
Project Type
Educational Capstone
Course
General Assembly Python
Live Demo
Source
Animated demonstration of Python Tic-Tac-Toe game with interactive grid and player moves
Modern web interface with game board, player management, and real-time gameplay

Key Features

🎮 Web Interface
Modern Flask web app with responsive UI, player management, and real-time gameplay
🤖 AI Strategy Pattern
Multiple AI difficulty levels using Strategy Pattern with scalable opponent architecture
💾 Data Persistence
SQLAlchemy ORM with SQLite for games, players, and move history storage
🔌 REST API
Complete JSON API with testing interface for programmatic game access

Technical Implementation

Backend: Python Flask framework with MVC architecture and SQLAlchemy ORM
Frontend: HTML5, CSS3, JavaScript with responsive design and real-time updates
AI: Strategy Pattern implementation with multiple difficulty levels and intelligent move selection
API: RESTful JSON endpoints with comprehensive testing interface

Impact & Results

🏆 Capstone Project
Successfully completed General Assembly Python course requirements
🎯 Design Patterns
Demonstrated Strategy Pattern and OOP principles in practice
🌐 Live Demo
Deployed working application accessible online
📚 Full-Stack
Complete web development from database to user interface