Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 777 Bytes

README.md

File metadata and controls

35 lines (19 loc) · 777 Bytes

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