tinycodinglm / chess /chess-0080.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 12)
3c88a0f verified
|
Raw History Blame Contribute Delete
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')"}}