tinycodinglm / chess /chess-0094.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 12)
3c88a0f verified
|
Raw History Blame Contribute Delete
1.45 kB
opencode trace
System You are an expert chess programmer.

You are an expert chess programmer.

User

Explain Stockfish engine architecture

Assistant

Stockfish: strongest open-source chess engine. Written in C++.

Search: Lazy SMP (shared memory parallel search). Multiple threads search same tree with different depths/sizes. Best moves from all threads merged via UCI protocol.

Key search features:

  • PVS with aspiration windows
  • Late move reductions (LMR): reduce depth for moves ordered late
  • Late move pruning: skip moves ordered very late at low depths
  • Futility pruning: skip moves that cannot improve alpha
  • Null move pruning: skip a move for opponent (R=2), if still >= beta, prune
  • Razoring: drop into qsearch at low depths if eval is far below alpha
  • Singular extensions: extend moves that are significantly better than alternatives

Evaluation: NNUE + a small amount of hand-crafted terms. Material, piece-square tables, mobility, king safety, pawn structure.

Endgame: Syzygy tablebases (up to 7 pieces). probing at root and in search.

Time management: pondering, increment handling, emergency time allocation.

UCI protocol: communicates with GUI via position/setoption/go commands.