Prudh

Max search trials
Max search time

Computer

HOW TO PLAY

Prudh is an abstract strategy game by James Ernest and Crab Fragment Labs, used by permission. A link to the rules can be found here https://crabfragmentlabs.com/prudh (direct link to v1.5 rules implemented here).

Player one controls the white squares and player two controls the gray squares. By default you are player one and the computer is player two, but that can be swapped when starting a new game.

When you hover over a stack that can be moved it is highlighted in YELLOW. Click on a highlighted stack and the squares it can move to will be outlined in YELLOW (only the last square of a run is highlighted). Click on one of the outlined squares to make the move, or click on a different stack 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-2024 Greg Whitehead
MIT License