Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Installed
react@^19.2.0
react-dom@^19.2.0

Tic Tac Toe Game with Bot

hardgameminimaxalgorithmbot2d-arrayreactsde2atlassiangame-theoryAtlassian (P5 interview)UI Component

Prompt

Build a fully playable 3x3 Tic Tac Toe game where a human competes against an AI bot. The bot uses the Minimax algorithm from game theory making it theoretically unbeatable. Game detects wins horizontally/vertically/diagonally and ties. Player can choose X or O before the game starts. Board updates visually after each move.

Model board as a 3x3 2D array of empty strings. Implement minimax(board
Test Results

Tic Tac Toe Game with Bot

Build a fully playable 3x3 Tic Tac Toe game where a human competes against an AI bot. The bot uses the Minimax algorithm from game theory making it theoretically unbeatable. Game detects wins horizontally/vertically/diagonally and ties. Player can choose X or O before the game starts. Board updates visually after each move.