r/explainlikeimfive • • 1h ago

Mathematics ELI5 How does the difficulty levels work/differ for computer chess?

12 Upvotes

9 comments sorted by

•

u/fenton7 1h ago

Chess algorithms search a tree of all possible moves and evaluate each board position using a measure of strength ("heuristic"). Strong positions are explored deeper. Weak ones are discarded. The algorithm can be made stronger or weaker by expanding or limiting how deep it searches. In addition, chess programs have a database of openings. They can be made weaker by forcing the engine to evaluate the opening rather than use known best moves. And, lastly, chess programs can be intentionally crippled - like on chess.com - by doing bad moves even though the algorithm knows better ones are available. For that reason the bots on chess.com aren't very representative of real players. A 1400 bot will make obvious errors that a 1400 human player does not.

•

u/DarkAlman 1h ago

chess programs can be intentionally crippled

This is the Key point, the software is programmed to randomly make deliberate mistakes. Either just choosing a suboptimal move, or making a blunder.

•

u/Bee_Xe 1h ago

That's why I keep playing harder bots intentionally, I'm a 1200 rapid and it's clear an 1200 plays like a 700 sometimes.

•

u/MeBadDev 1h ago

how do you know if a position is strong without looking at them deeply?

•

u/fenton7 1h ago

The heuristics are mostly used to prioritize which branches to explore first. They are imperfect but look at things like how well developed pieces are. Lots of pieces out in the middle of the board is usually strong. And it's usually better, but not always, to have more material.

•

u/GIRose 1h ago

Depends largely on what type of chess engine you're looking at.

To use the difficulty levels I am roughly familiar with, it tries to roughly coordinate the ELO with a human player of the same ELO.

So a 200 elo computer is rarely if ever going to select the best move. It's not necessarily the same as a 200 elo player because it can't lose track of pieces, sees every threat, and is in fact calculating multiple moves ahead no different from the top tier. It's just picking moves that score lower.

At max value it always picks the best possible move in every turn.

•

u/SoSKatan 1h ago

It can be arbitrary and set by whatever the software creator thinks.

However any algorithm when tested against multiple humans can be given a ELO rating.

•

u/Bee_Xe 1h ago

AFAIK the computer calculates all the possible moves, and evaluates how it's gonna change the position for each player and rank each moves accordingly.

The difficulty depends on the processing power of the Bot (how far it's going to think in the future), and the tree of moves available to look at (some are limited and cannot see certain moves beyond a certain point).