File size: 1,452 Bytes
3c88a0f
 
 
 
1
2
3
4
5
{"type": "session", "harness": "opencode", "id": "chess-0094", "name": "Stockfish Engine Architecture"}
{"type": "message", "message": {"role": "system", "content": "You are an expert chess programmer."}}
{"type": "message", "message": {"role": "user", "content": "Explain Stockfish engine architecture"}}
{"type": "message", "message": {"role": "assistant", "content": "Stockfish: strongest open-source chess engine. Written in C++.\n\nSearch: Lazy SMP (shared memory parallel search). Multiple threads search same tree with different depths/sizes. Best moves from all threads merged via UCI protocol.\n\nKey search features:\n- PVS with aspiration windows\n- Late move reductions (LMR): reduce depth for moves ordered late\n- Late move pruning: skip moves ordered very late at low depths\n- Futility pruning: skip moves that cannot improve alpha\n- Null move pruning: skip a move for opponent (R=2), if still >= beta, prune\n- Razoring: drop into qsearch at low depths if eval is far below alpha\n- Singular extensions: extend moves that are significantly better than alternatives\n\nEvaluation: NNUE + a small amount of hand-crafted terms. Material, piece-square tables, mobility, king safety, pawn structure.\n\nEndgame: Syzygy tablebases (up to 7 pieces). probing at root and in search.\n\nTime management: pondering, increment handling, emergency time allocation.\n\nUCI protocol: communicates with GUI via position/setoption/go commands."}}