A sample implementation of minimax/montecarlo search for tictactoe in pure javascript (ECMA6)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
algorithms
hooks
models
test
.eslintignore
.eslintrc
.gitignore
.travis.yml
README.md
index.js
package-lock.json
package.json

README.md

AI - Tic-Tac-Toe in JS

A simple adversarial search implemented in javascript.

Coverage Status

Build Status

Getting Started

Follow the following steps to get started.

  1. Clone this repository
  2. Run npm install to install dependencies
  3. Run one of the following npm tasks
    • npm run start:mm to run the minimax algorithm
    • npm run start:mc to run the montecarlo algorithm

Tic-Tac-Toe Game

This program uses the standard rules for tic-tac-toe

Algorithms

Minimax

Montecarlo