|
Download chess/chess-0080.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.49 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/chess/chess-0080.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm/chess/chess-0080.jsonl
-
curl -L -o chess-0080.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/chess/chess-0080.jsonl
1.49 kB
| {"type": "session", "harness": "opencode", "id": "chess-0080", "name": "Chess Evaluation Functions"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert chess programmer."}} | |
| {"type": "message", "message": {"role": "user", "content": "Explain chess evaluation functions"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "Evaluation estimates position score from the side to move's perspective. Returns centipawns (100 = 1 pawn).\n\nMaterial: piece values. P=100, N=320, B=330, R=500, Q=900, K=20000. Sum of own pieces minus opponent pieces.\n\nPiece-square tables: bonus/penalty for each piece on each square. Center squares worth more for knights/bishops. King safety in opening (kingside castling), centrality in endgame.\n\nPawn structure: doubled pawns (penalty), isolated pawns (penalty), passed pawns (bonus proportional to advancement), backward pawns, pawn chains.\n\nMobility: count of legal moves for each piece. More mobility = better position. Weight by piece type.\n\nKing safety: pawn shield in front of castled king. Open files near king = danger. Attacker count near king.\n\nCenter control: bonus for pieces/pawns controlling central squares (e4, d4, e5, d5).\n\nTapered eval: interpolate between middlegame and endgame weights based on remaining material. Game phase = sum of piece values on board.\n\nShannon's formula (1949): f(p) = 200(K-K') + 9(Q-Q') + 5(R-R') + 3(B-B'+N-N') + 1(P-P') - 0.5(D-D'+S-S'+I-I') + 0.1(M-M')"}} | |