Skip to content

runekernal/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Tic Tac Toe AI is a simple web-based game where a player challenges an AI opponent. The AI uses the Minimax algorithm with Alpha-Beta Pruning to make unbeatable moves. Built using pure HTML, CSS, and JavaScript, it provides a clean, responsive, and interactive experience.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors