JavaScript implementation of the Minimax algorithm. Implemented games are Nim and Tic-Tac-Toe.
Run npm i
to install dependencies.
Play Nim or Tic-Tac-Toe against the AI with game="Nim" engine="human" npm run play
.
Visualize a random bot play Tic-Tac-Toe or Nim against the AI with game="TicTacToe" engine="random" npm run play
.
Run linter with npm run lint
.