Chrome ν™•μž₯ ν”„λ‘œκ·Έλž¨

How Stockfish Evaluates Chess Positions: AΒ Deep Dive

November 26, 2025Β·9 min read
+3.2
eval

What isΒ Stockfish?

Stockfish isΒ theΒ world’s strongest open-source chess engine. It’s used byΒ professionals, amateurs, andΒ analysis platforms (including chess.rodeo) worldwide. ButΒ how does itΒ actually evaluate chess positions?

TheΒ Basics: How Chess Engines Think

Chess engines don’t β€œunderstand” chess like humansΒ do. Instead, they:

  1. Generate possible movesΒ β€” List all legal moves inΒ aΒ position
  2. Search aheadΒ β€” Explore move sequences (variations)
  3. Evaluate positionsΒ β€” Assign numerical scores toΒ positions
  4. Select theΒ best moveΒ β€” Choose theΒ move leading toΒ theΒ best evaluation

Let’s dive into each component.

Search: Looking Ahead

Alpha-Beta Search

Stockfish uses alpha-beta pruning, anΒ optimized version ofΒ minimax search:

  • Minimax: Assume both players play optimally
  • Alpha-Beta: Skip variations that can’t affect theΒ final decision

This allows Stockfish toΒ search much deeper than checking every possible move.

Depth andΒ Speed

AtΒ depth 20, Stockfish might examine billions ofΒ positions. Modern chess engines onΒ fast hardware can search 50+ million positions perΒ second.

Selective Search

NotΒ all moves are equal. Stockfish spends more time on:

  • Captures andΒ checks
  • Moves that changed evaluation significantly
  • Promising variations from previous searches

Evaluation: What Makes aΒ Position Good?

Traditional Evaluation (Classical)

Older Stockfish versions used hand-crafted evaluation with components like:

Material Count

Pawn = 100
Knight = 320
Bishop = 330
Rook = 500
Queen = 900

Positional Factors

  • Piece activity andΒ mobility
  • Pawn structure (doubled, isolated, passed pawns)
  • King safety
  • Control ofΒ key squares
  • Piece coordination

Game Phase

Different factors matter inΒ opening vs. endgame. AΒ centralized king isΒ terrible inΒ theΒ middlegame butΒ excellent inΒ theΒ endgame.

NNUE: Neural Network Evaluation

Modern Stockfish (including version 17) uses NNUE (Efficiently Updatable Neural Network):

What isΒ NNUE?

AΒ specialized neural network trained onΒ millions ofΒ positions, designed toΒ beΒ extremely fast toΒ evaluate.

How itΒ Works

  1. TheΒ board position isΒ converted toΒ input features
  2. These feed through network layers
  3. TheΒ network outputs anΒ evaluation score

Why NNUE isΒ Better

  • Learns patterns too complex toΒ hand-code
  • Picks upΒ subtle positional factors humans identified butΒ couldn’t quantify
  • Updates efficiently (only recalculates changed parts ofΒ theΒ position)

Training

NNUE isΒ trained on:

  • Self-play games between strong engine versions
  • Evaluations from very deep searches
  • Millions ofΒ positions with known outcomes

Understanding Stockfish Output

Centipawn Evaluation

Stockfish reports evaluations inΒ centipawns:

  • +1.00 = White isΒ ahead byΒ 1 pawn worth
  • -2.50 = Black isΒ ahead byΒ 2.5 pawns worth
  • 0.00 = Roughly equal

Mate Scores

When mate isΒ found:

  • M5 = Mate inΒ 5 moves
  • -M3 = Getting mated inΒ 3 moves

Principal Variation (PV)

TheΒ sequence ofΒ moves Stockfish considers best forΒ both sides:

+1.25  Nf3 d5 e3 Nf6 d4 e6 Bd3 c5

Depth andΒ Accuracy

What Depth Means

Depth = number ofΒ half-moves (plies) theΒ engine searches:

  • Depth 10 = 5 moves forΒ each side
  • Depth 20 = 10 moves forΒ each side

Higher Depth = More Accurate

AtΒ higher depths, Stockfish:

  • Finds deeper tactics
  • Evaluates positions more accurately
  • Discovers long-term strategic factors

Diminishing Returns

Most ofΒ theΒ benefit comes from theΒ first 15-20Β ply. Going from depth 20 toΒ 40 rarely changes theΒ evaluation dramatically except inΒ very tactical positions.

Why Stockfish Isn’t Perfect

Horizon Effect

Sometimes theΒ best move requires seeing further than theΒ search depth:

  • AΒ tactic works butΒ loses toΒ aΒ counter-tactic atΒ depthΒ 25
  • Depth 20 search thinks it’s good

Fortress Positions

Stockfish might evaluate aΒ drawn fortress asΒ winning because itΒ can’t β€œsee” that progress isΒ impossible.

Positional Complexity

Some positions require understanding beyond pattern recognitionΒ β€” plans that unfold over 20+ moves inΒ non-forcing sequences.

How chess.rodeo Uses Stockfish

Server-Side Analysis

WeΒ run Stockfish 17 onΒ our servers, soΒ you get:

  • Fast analysis without using your device’s resources
  • Consistent depth (15+ forΒ all positions)
  • Higher depth (20+) forΒ cached positions from Lichess database

Multi-PV Analysis

WeΒ analyze theΒ top 3 moves inΒ each position, showing you alternatives, notΒ just theΒ single best move.

Move Classification

Based onΒ centipawn loss, each move isΒ classified:

ClassificationCentipawn Loss
Best/Brilliant0-10
Good10-30
Inaccuracy30-100
Mistake100-300
Blunder300+

Tips forΒ Using Engine Analysis

Don’t Just Look atΒ theΒ Best Move

Understand WHY it’s best. What threat does itΒ create? What does itΒ prevent?

Consider Multiple Lines

TheΒ second andΒ third-best moves are often perfectly playable. Understanding why they’re slightly worse isΒ valuable.

Context Matters

AΒ β€œblunder” inΒ aΒ lost position might beΒ theΒ practical choice. TheΒ engine’s best move might also lose, just more slowly.

Use Appropriate Depth

ForΒ most analysis, depth 15-20 isΒ sufficient. Very deep analysis (30+) isΒ only necessary forΒ theoretical novelties orΒ positions with long tactical sequences.

Conclusion

Stockfish combines sophisticated search algorithms with neural network evaluation toΒ play near-perfect chess. Understanding how itΒ works helps you use analysis tools more effectively.

When you analyze onΒ chess.rodeo, you’re harnessing theΒ same technology used byΒ world championship contendersΒ β€” completely free.

Start analyzing andΒ see Stockfish inΒ action onΒ your games.

κ²½ν—˜ κ°œμ„ μ„ μœ„ν•΄ μΏ ν‚€λ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€. ν•„μˆ˜ μΏ ν‚€λŠ” 항상 ν™œμ„±ν™”λ©λ‹ˆλ‹€. 뢄석 μΏ ν‚€λŠ” μ„œλΉ„μŠ€ μ‚¬μš© 방식을 μ΄ν•΄ν•˜λŠ” 데 도움이 λ©λ‹ˆλ‹€. κ°œμΈμ •λ³΄μ²˜λ¦¬λ°©μΉ¨μ—μ„œ μžμ„Ένžˆ 보기