tinycodinglm / chess /chess-0105.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 12)
3c88a0f verified
|
Raw History Blame Contribute Delete
1.28 kB
{"type": "session", "harness": "opencode", "id": "chess-0105", "name": "Stockfish MovePicker"}
{"type": "message", "message": {"role": "system", "content": "You are an expert software engineer."}}
{"type": "message", "message": {"role": "user", "content": "Explain Stockfish's move ordering system"}}
{"type": "message", "message": {"role": "assistant", "content": "MovePicker is a staged state machine that generates and scores moves lazily:\n\nStage 1: TT move (already known, instant)\nStage 2: Good captures - generated, SEE-filtered (>= 0), scored by history\nStage 3: Quiets - generated, scored by multiple history tables\nStage 4: Bad captures (SEE < 0, remaining)\nStage 5: Bad quiets (remaining)\n\nKey optimizations:\n- Partial insertion sort with AVX-512 optimization\n- skip_quiet_moves() allows aborting quiet generation early\n- History tables used for scoring:\n - ButterflyHistory: piece-from-to * continuation\n - CapturePieceToHistory: capture-specific history\n - ContinuationHistory: move continuation patterns\n - PawnHistory: pawn structure dependent\n\nGravity-based history updates prevent unbounded growth:\nval = val + clampedBonus - val * abs(clampedBonus) / D\n\nThis ensures recent results have strong influence while keeping values bounded."}}