A beautiful, modern Tic-Tac-Toe game playable in the browser. Play against a friend or the built-in AI!
- Human vs Human or Human vs AI
- Player stats and win counters
- Responsive Tailwind CSS UI
- Animated turn/win indicators
- Change Player Names dialog
- Smart AI using Minimax
- Easy unit testing
1. Install Bun
bun installbunx serveThen open http://localhost:3000 in your browser.
bun testRuns Bun's built-in test runner on core game and AI logic in game.test.js.
index.html– Main web UIgame.js– UI logic (ES modules)tic-tac-toe-core.js– Game and AI logic (browser & tests)game.test.js– Unit tests for logic (Bun test)
MIT