Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 716 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 716 Bytes

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.