TicTactic is a modern Tic-Tac-Toe playground built with Next.js 16, React 19, and TypeScript. It features an unbeatable Minimax AI with optional Alpha Beta pruning and supports 3×3 and 4×4 boards. Its AI Analysis Mode shows how the engine evaluates each move, including scores, explored nodes, and pruning behavior.
- Unbeatable Minimax AI opponent
- Optional Alpha-Beta pruning for optimized performance
- Support for 3×3 and 4×4 game boards
- AI Analysis Mode showing move evaluations, explored nodes, and pruning statistics
- Real-time thinking visualization
🌐 Live URL: https://khanhhuy288.github.io/tictactic/
# Install dependencies
npm install
# Run development server
npm run dev
# Build for production
npm run build
# Run tests
npm testThis project is automatically deployed to GitHub Pages using GitHub Actions. The deployment workflow:
- Triggers on every push to the
mainbranch - Builds the Next.js app as a static export
- Deploys to GitHub Pages
- Framework: Next.js 16
- UI Library: React 19
- Language: TypeScript
- AI Algorithm: Minimax with Alpha-Beta Pruning