Ayushii12 / TicTacToe

This repository contains Tic-Tac-Toe game that offers two options: 1) Human Vs Human 2) Human Vs Computer. The computer player uses the Minimax and Negamax algorithms to make its moves.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TicTacToe

Tic Tac Toe is a classic two-player game where each player takes turns marking a 3x3 grid with their symbol, either X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.

This repository contains a Tic Tac Toe game that offers two options:

  1. Human vs Human
  2. Human vs Computer

The computer player uses the Minimax and Negamax algorithms to make its moves. These algorithms are used to search the game tree for the best possible move. As a result, the computer player is very difficult to beat.

Features

- Two-player game
- Human vs Human and Human vs Computer modes
- Minimax and Negamax algorithms for computer player
- Easy to use interface

Usage

To play the game, simply clone the repository and run the index.html file. You can then choose whether you want to play against another human or the computer.

About

This repository contains Tic-Tac-Toe game that offers two options: 1) Human Vs Human 2) Human Vs Computer. The computer player uses the Minimax and Negamax algorithms to make its moves.


Languages

Language:JavaScript 52.9%Language:HTML 33.2%Language:CSS 13.9%