Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.17 KB

File metadata and controls

57 lines (39 loc) · 1.17 KB

Tic Tac Toe - AI vs Human

This is a simple Tic Tac Toe web application built using HTML, CSS, and JavaScript. It features a Minimax algorithm-powered AI that plays against the user.


Features

  • Clean and responsive UI.
  • Human plays as X, AI plays as O.
  • AI uses Minimax algorithm with Alpha-Beta Pruning for optimal moves.
  • Reset button to restart the game anytime.
  • Visual highlights for winning combinations.

How to Run

  1. Clone or download this repository.
  2. Open index.html in any modern web browser.
# Clone the repository
git clone https://github.com/runekernal/tic-tac-toe.git

# Navigate into the project directory
cd tic-tac-toe

# Open index.html with your browser

No additional setup or installations required!


Folder Structure

├── index.html
├── styles
│   ├── style.css
│   └── fonts.css
├── scripts
│   └── script.js
├── fonts
    ├── Poppins-Regular.ttf
    └── Fredoka.ttf

License

This project is licensed under the GNU General Public License v2.0 (GPL-2.0).

For more details, refer to the LICENSE file.