Easy, Normal or Hard: how the computer on this site chooses its moves
Published · By TG, the site operator
The computer on this site is three opponents, not one. The level menu offers Easy, Normal and Hard, and the levels differ only in how the computer picks its move. This note explains each one from the site's rules code, so you can choose the level that gives the game you want.
Easy: a random legal move
On Easy the computer lists every legal move in the position and picks one at random. It never plays an illegal move, because the list comes from the same rules the human player follows. But nothing is planned, so a random move can walk into a mill threat or leave a counter open to capture. Easy suits a first game, when you want to learn how placing, sliding and removing work.
Normal and Hard: looking ahead
Normal and Hard search the game tree. Normal looks two moves ahead: the computer's move and your reply. Hard looks four moves ahead, counting its own moves and yours alternately. At the end of each line the position is scored. The score first counts the difference in counters, both on the board and still to place, at 150 per counter. It then adds 40 for each complete mill and 22 for each line with two of a side's counters and one empty point, and adds or subtracts 100 when a capture is waiting to be made. A finished win or loss scores far above all of that.
The search has a time limit. The computer gives itself 700 milliseconds for a move. It searches one move deep, then deeper, and if time runs out it plays the best move from the last depth it finished. Hard therefore may not reach four moves on a slow device, so it is a stronger version of Normal rather than a guaranteed deep search.
Play the computer on Hard and watch its first moves →
What the wait means
Before the computer moves, the page waits two seconds and shows the message "Take a moment to plan." That pause only makes the turn easier to follow. It does not change how the move is chosen.
How to use the levels
- Start on Easy to see how each rule works, and pick your side, Ivory or Onyx, when you start a computer game.
- Move up to Normal once you can spot a mill threat in one move.
- Play Hard when you want a harder test, and use Undo to take back a move and try another point.
The move list names each point by its number, so you can check the computer's choices against the score described above. Remember that the score is a rough guide, not a claim that the computer plays perfectly.
Sources
- Nine Men's Morris game page (level menu, Undo) — Nine Men's Morris (this site), 13 November 2026
Written by the operator of this site from the sources listed above. Spotted a mistake? Email warmeve.label@gmail.com and it will be corrected.