8000 GitHub - SoumyaEXE/TicTacToe: A Simple TicTacToe Game Made In HTML, CSS, JAVASCRIPT
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SoumyaEXE/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game with Tough AI

This is a simple web-based Tic-Tac-Toe game that includes an AI opponent using the Minimax algorithm. The AI is designed to be tough, making it hard to win for the player.

Features

  • Player vs AI Tic-Tac-Toe.
  • The AI uses the Minimax algorithm to play optimally.
  • Highlights winning cells and declares the winner or draw.
  • AI aims to win as early as possible and delay losses.

Game Mechanics

  • Player chooses to play as either X or O.
  • The game board is a 3x3 grid.
  • The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
  • If all cells are filled and no player has won, the game is a draw.

How to Play

  1. Choose your player (X or O).
  2. Take turns placing your mark on the grid.
  3. The AI will automatically make its move after yours.
  4. The game will declare a winner or draw once conditions are met.

Project Setup

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/tic-tac-toe-ai.git
    cd tic-tac-toe-ai
  2. Open the index.html file in your browser to play.

Running the Game

  • Simply open the index.html in any browser.
  • You don't need any additional installations or dependencies.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Screenshot

Tic-Tac-Toe Screenshot


Enjoy playing Tic-Tac-Toe with a tough AI opponent!

About

A Simple TicTacToe Game Made In HTML, CSS, JAVASCRIPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0