Backgammon

Max search trials
Max search time

First

HOW TO PLAY

Play Backgammon against the computer.

You are GREEN and the computer is BLUE. By default you always go first, but that can be changed when starting a new game.

When you hover over a piece that can be moved it is highlighted in YELLOW. Click on a highlighted piece and the locations it can move to will be outlined in YELLOW. Click on one of the outlined locations to make the move, or click on a different piece to see what moves it can make.

After you move, the computer will "think" and then make its move. The computer's move will be highligted with a dashed BLACK outline.

The computer uses JSMCTS, a javascript implementation of Monte Carlo Tree Search (MCTS) that runs in the browser, to select a move. It displays the moves it is evaluating and what percentage of the time those moves lead to a win. The number of trials it runs and the amount of time it has to run them can be controlled.

Repository: https://github.com/grwhitehead/jsmcts

Copyright 2022-2023 Greg Whitehead
MIT License