Skip to content

A JavaScript tic-tac-toe game app that uses the minimax ai algorithm.

Notifications You must be signed in to change notification settings

sniderjustin/js-ai-minimax-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-ai-minimax-tic-tac-toe

AI Minimax Tic-Tac-Toe is a JavaScript game that allows a human to play an AI Minimax Algorithm.

The Minimax AI strategy recursively generates a tree of all possible outcomes from the current state of the game. Each alternative branch of the tree is assigned a score based on who ultimately wins. The AI then makes a move with the best score.

Minimax is able to anticipate the opponent's moves by assuming all players will make moves in their best interest.

The code uses the p5 libraries for the custom interface. Much of the concepts and code are derived from Daniel Shiffman’s video on Minimax AI.

About

A JavaScript tic-tac-toe game app that uses the minimax ai algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published