Skip to content

alexandrinaw/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tic-tac-toe

A game of tic tac toe written in JavaScript for my Hacker School application.

Play it here!

There are four choices for opponents:

  • Human (on same computer)

  • Hard AI

    An AI player that uses the minimax algorithm with alpha-beta pruning to explore the full game depth. Guarenteed to win or draw.

  • Medium AI

    Similar to Hard AI player, but depth is limited to 2, meaning it only looks two moves in advance.

  • Random AI

    An AI player that picks a random empty square to play in. Often loses.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published