GithubHelp home page GithubHelp logo

syedali237 / tic-tac-toe_with_minimax_algo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eizadhamdan/tic-tac-toe_with_minimax_algo

1.0 0.0 0.0 16 KB

Implementation of minimax algorithm on a tic-tac-toe game.

JavaScript 62.73% CSS 20.88% HTML 16.39%

tic-tac-toe_with_minimax_algo's Introduction

-----Tic Tac Toe with Minimax Algorithm-----

This repository contains a simple implementation of the classic Tic Tac Toe game using HTML, CSS, and JavaScript, enhanced with the Minimax algorithm for AI-based gameplay.

In this implementation, you can play against an AI opponent that uses the Minimax algorithm to determine its moves. The Minimax algorithm is a decision-making algorithm used in game theory to find the optimal move for a player, ensuring that the player maximizes their chances of winning while minimizing the opponent's chances.

How to Play:

  1. Clone or download this repository to your local machine.
  2. Open the tictactoe.html file in your web browser.
  3. Select X or O.
  4. Click on any empty square to place your mark.
  5. The AI opponent will automatically make its move using the Minimax algorithm.
  6. Continue playing until there's a winner or the game ends in a draw.

tic-tac-toe_with_minimax_algo's People

Contributors

eizadhamdan avatar

Stargazers

jist avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.