Skip to content

The classic Tic Tac Toe board game with JavaScript and canvas API, with different AI based strategies to show how AI can play Tic Tac Toe.

Notifications You must be signed in to change notification settings

LakhderAmine99/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

A sample and useful implementation of the Tic Tac Toe game using javascript and canvas 2d.

Overview

Play the Tic Tic Toe game with diffrent AI strategies

Play the game

You can play the game here, Play.

How to play

  • Choose the AI strategy you want to play with
  • Click on the board to play or choose the O button to let the AI play first
  • The game will end when there is a winner or a draw

AI strategies

  • Random

    The AI will play randomly

  • Newell and Simon

    The AI will play using the Newell and Simon strategy

  • Minimax

    The AI will play using the minimax algorithm

  • Minimax with alpha-beta pruning

    The AI will play using the minimax algorithm with alpha-beta pruning

About

The classic Tic Tac Toe board game with JavaScript and canvas API, with different AI based strategies to show how AI can play Tic Tac Toe.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published