giuseppe998e / tictactoe-js

Another TicTacToe script written in JS

Home Page:https://giuseppe998e.github.io/tictactoe-js/example/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Another TicTacToe Script (that uses MiniMax algorithm)

Tic-tac-toe (American English), noughts and crosses (Commonwealth English), or Xs and Os is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.

This script uses the MiniMax algorithm to calculate the moves of the computer, it is practically impossible to beat it.

Minified version of the code is available in the "example" folder.

P.S. :: At the moment, the only implemented "difficulty" is the "impossible" one.

About

Another TicTacToe script written in JS

https://giuseppe998e.github.io/tictactoe-js/example/

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 47.6%Language:CSS 43.6%Language:HTML 8.8%