{"type": "session", "harness": "deepseek-harness", "id": "chess-0102", "name": "Chess endgame fundamentals"} {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} {"type": "message", "message": {"role": "user", "content": "What endgame principles should every chess player know?"}} {"type": "message", "message": {"role": "assistant", "content": "**Key Principles:**\n\n1. **King Activity:** Bring king to center in endgames\n - King is a fighting piece in endgame\n - Opposition: kings face each other with 1 square gap\n\n2. **Passed Pawns:** Push them, especially connected passers\n - Create passers by exchanging on right files\n - Outside passer: distracts opponent's king\n\n3. **Pawn Structure:**\n - Avoid isolated/doubled pawns\n - Create pawn majorities\n - Key squares: squares that guarantee promotion with correct play\n\n4. **Rook Endgames (most common):**\n - Rook behind passed pawn (Lucena position)\n - Rook cuts off enemy king (Philidor position)\n - 7th rank domination\n - Active rook > passive rook\n\n5. **Bishop vs Knight:**\n - Bishop better in open positions (both colors of pawns)\n - Knight better in closed positions\n - Good bishop: pawns on opposite color squares\n - Bad bishop: pawns on same color squares\n\n6. **Opposition:**\n - Direct opposition: kings face each other\n - Distant opposition: kings on same file/rank with odd squares between\n - Key to winning king+pawn endgames\n\n7. **Zugzwang:** Position where any move worsens your position\n - Common in king+pawn endgames\n - Use to force opponent's king away\n\n**Essential Endgames to Know:**\n- King + Queen vs King\n- King + Rook vs King\n- King + 2 Bishops vs King\n- King + Bishop + Knight vs King\n- Rook + pawn vs Rook (Lucena/Philidor)\n- Queen vs pawn on 7th rank"}}