|
Download chess/chess-0092.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.73 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/chess/chess-0092.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm/chess/chess-0092.jsonl
-
curl -L -o chess-0092.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/chess/chess-0092.jsonl
1.73 kB
| {"type": "session", "harness": "opencode", "id": "chess-0092", "name": "Chess Search Algorithms"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert chess programmer."}} | |
| {"type": "message", "message": {"role": "user", "content": "Explain chess search algorithms"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "Minimax: evaluate all positions to depth d, maximize for white, minimize for black. O(b^d) where b = branching factor (~35 in chess).\n\nAlpha-beta: prune branches that cannot affect the result. Alpha = best guaranteed for maximizer, beta = best for minimizer. If alpha >= beta, prune. With perfect move ordering: O(b^{d/2}).\n\nNegamax: equivalent to minimax but both players maximize. Score = -negamax(opponent). Simpler implementation.\n\nPVS (Principal Variation Search): search first move with full window, subsequent moves with null window (beta = alpha+1). Re-search if null window fails high. O(b^{d/2}) with good move ordering.\n\nMTD(f): bidirectional search using null-window tests. Repeatedly call negamax with zero window, adjusting bounds. Converges to exact value. Very efficient but needs good guess.\n\nTransposition table: hash positions, store evaluated score and best move. Avoids re-evaluating transpositions (different move orders reaching same position). Zobrist hashing: XOR random values for each piece on each square.\n\nIterative deepening: search depth 1, then 2, etc. Provides best-so-far move for time control. Also improves move ordering (previous iteration's best move first).\n\nQuiescence search: at leaf nodes, continue searching captures until position is quiet. Prevents horizon effect (evaluating during a capture sequence)."}} | |