Skip to content

Work / Chess / Wiki / Entities

difficulty

Entitycanonicalverified 2026-10-04

DIFFICULTY.CHESS

Summary

The three computer levels, and what each one actually does.

Canonical values

Key Value Last changed
LEVEL.EASY a random legal move, every move 2026-10-04
LEVEL.MEDIUM the best move with probability 0.6, otherwise a random legal move 2026-10-04
LEVEL.HARD the best move, every move 2026-10-04
SEARCH alpha-beta. Depth 2; depth 3 once countPieces is 10 or fewer 2026-10-04
COPY.EASY "Plays any legal move, at random." 2026-10-04
COPY.MEDIUM "Plays its best move about six times in ten." 2026-10-04
COPY.HARD "Always plays the best move it can find." 2026-10-04

Rules

  • The copy describes the behaviour. The app today says "Master level difficulty" for Hard. A search two to three moves deep is not that, and a chess player finds out in one game.
  • No rating is claimed. Nobody has measured these levels against anything.
  • .github/copilot-instructions.md says Hard is "depth-6 minimax" and Medium is "50/50". Both are wrong against src/lib/ai.ts.

Related

  • modes — levels exist only against the computer
  • setup-computer — where the level is chosen

Sources

  • src/lib/ai.ts