an unbeatable tic tac toe game powered by the minimax algorithm.
- board UI
- show X or O when click on grid, based on turns
- winning logic
- tie game logic
- game over condition
- restart game
- minimax function with scoring system
- make the computer and human play turn by turn
Follow these steps to set up this project locally on your machine.
- A modern web browser (Google Chrome, Firefox, Safari, Edge)
- Git installed on your machine
- (Optional) VS Code with the Live Server extension
-
Clone the repository
git clone https://github.com/damakerdev/tictactoe.git cd tictactoe -
Since this is a plain HTML, CSS, and JavaScript project, no external dependencies or package managers (e.g., npm) are required.
-
To run this project, locate index.html in your project folder and double-click it to open directly in your web browser or right-click index.html inside VS Code and select "Open with Live Server".
learning minimax.