{"course":{"id":"pawn-endgame-fundamentals","trackId":"pawn-endgame-fundamentals","title":"Pawn Endgame Fundamentals","description":"Judge pawn races, win with your king, and promote a passed pawn. This decides more of your games than your opening prep ever will.","learnLineIds":["rule-of-the-square-box"],"lines":[{"id":"rule-of-the-square-box","name":"Rule of the Square","techniqueSummary":"Picture the pawn’s square, watch it shrink after every push, and see an outside king lose the race.","distinctnessNote":"Introduces the complete square overlay with an obviously distant king, then carries the pawn all the way to a queen.","startFen":"k7/8/8/7P/8/8/8/K7 w - - 0 1","sideToMove":"white","expectedResult":"win","mainLine":[{"ply":1,"mover":"white","moveSan":"h6","moveUci":"h5h6","fenBefore":"k7/8/8/7P/8/8/8/K7 w - - 0 1","fenAfter":"k7/8/7P/8/8/8/8/K7 b - - 0 1","acceptedMoves":["h5h6","a1a2","a1b2","a1b1"],"coachText":"Welcome to Pawn Endgame Fundamentals.\n\nWe're White and we want to promote this pawn. The rule of the square tells us whether a king can catch a passed pawn without calculating the whole race. The highlighted squares show the box from the pawn to promotion: if the defending king can step inside it, the pawn can be caught.\n\nHis king is outside the box, so we run.\n\nPlay h6."},{"ply":2,"mover":"black","moveSan":"Kb7","moveUci":"a8b7","fenBefore":"k7/8/7P/8/8/8/8/K7 b - - 0 1","fenAfter":"8/1k6/7P/8/8/8/8/K7 w - - 1 2"},{"ply":3,"mover":"white","moveSan":"h7","moveUci":"h6h7","fenBefore":"8/1k6/7P/8/8/8/8/K7 w - - 1 2","fenAfter":"8/1k5P/8/8/8/8/8/K7 b - - 0 2","acceptedMoves":["h6h7","a1a2","a1b2","a1b1"],"coachText":"The box shrinks as the pawn advances. His king moves closer but is still outside, so it can't catch up.\n\nPlay h7."},{"ply":4,"mover":"black","moveSan":"Kc6","moveUci":"b7c6","fenBefore":"8/1k5P/8/8/8/8/8/K7 b - - 0 2","fenAfter":"8/7P/2k5/8/8/8/8/K7 w - - 1 3"},{"ply":5,"mover":"white","moveSan":"h8=Q","moveUci":"h7h8q","fenBefore":"8/7P/2k5/8/8/8/8/K7 w - - 1 3","fenAfter":"7Q/8/2k5/8/8/8/8/K7 b - - 0 3","acceptedMoves":["h7h8r","h7h8q","a1a2","a1b2","a1b1"],"coachText":"The box is now only two squares wide, and his king is still outside it, so the pawn promotes safely.\n\nPlay h8=Q."}],"planCheckpoints":[],"completionText":"Outside the square means the king can't catch the pawn. We rebuild the box after every push: as the pawn gets closer to promotion, the box shrinks with it.","sequenceId":"rule-of-the-square-box","sequenceIndex":1,"sequenceCount":2,"variants":[{"id":"rule-of-the-square-box-variant-1","fen":"7k/8/8/P7/8/8/8/7K w - - 0 1","sideToMove":"white","expectedResult":"win","transform":"mirror-files"},{"id":"rule-of-the-square-box-variant-2","fen":"1k6/8/8/7P/8/8/8/K7 w - - 0 1","sideToMove":"white","expectedResult":"win","transform":"nudge-bk-1,0"},{"id":"rule-of-the-square-box-variant-3","fen":"8/k7/8/7P/8/8/8/K7 w - - 0 1","sideToMove":"white","expectedResult":"win","transform":"nudge-bk-0,-1"}],"verified":"tablebase"},{"id":"rule-of-the-square-double-step","name":"Rule of the Square","techniqueSummary":"A pawn on its starting square may move two squares at once, so build the box using one fewer move to promotion.","distinctnessNote":"In this tablebase-verified position g2-g4 is the only winning first move; g2-g3 merely draws, isolating the starting double-step as the deciding tempo.","startFen":"K7/8/8/8/k7/8/6P1/8 w - - 0 1","sideToMove":"white","expectedResult":"win","mainLine":[{"ply":1,"mover":"white","moveSan":"g4","moveUci":"g2g4","fenBefore":"K7/8/8/8/k7/8/6P1/8 w - - 0 1","fenAfter":"K7/8/8/8/k5P1/8/8/8 b - - 0 1","acceptedMoves":["g2g4"],"coachText":"We're White, playing for the win.\n\nA pawn that hasn't moved can advance two squares on its first move, and we factor that into the box: the pawn needs one fewer move to promote than its rank suggests. The one-square push only draws here, but the double step wins.\n\nPlay g4."},{"ply":2,"mover":"black","moveSan":"Kb5","moveUci":"a4b5","fenBefore":"K7/8/8/8/k5P1/8/8/8 b - - 0 1","fenAfter":"K7/8/8/1k6/6P1/8/8/8 w - - 1 2"},{"ply":3,"mover":"white","moveSan":"g5","moveUci":"g4g5","fenBefore":"K7/8/8/1k6/6P1/8/8/8 w - - 1 2","fenAfter":"K7/8/8/1k4P1/8/8/8/8 b - - 0 2","acceptedMoves":["g4g5"],"coachText":"The opening double step gained a full tempo. His king is still outside the box, so we keep running.\n\nPlay g5."},{"ply":4,"mover":"black","moveSan":"Kc5","moveUci":"b5c5","fenBefore":"K7/8/8/1k4P1/8/8/8/8 b - - 0 2","fenAfter":"K7/8/8/2k3P1/8/8/8/8 w - - 1 3"},{"ply":5,"mover":"white","moveSan":"g6","moveUci":"g5g6","fenBefore":"K7/8/8/2k3P1/8/8/8/8 w - - 1 3","fenAfter":"K7/8/6P1/2k5/8/8/8/8 b - - 0 3","acceptedMoves":["g5g6"],"coachText":"Each push shrinks the box again. He keeps chasing, but he still can't enter in time.\n\nPlay g6."},{"ply":6,"mover":"black","moveSan":"Kd4","moveUci":"c5d4","fenBefore":"K7/8/6P1/2k5/8/8/8/8 b - - 0 3","fenAfter":"K7/8/6P1/8/3k4/8/8/8 w - - 1 4"},{"ply":7,"mover":"white","moveSan":"g7","moveUci":"g6g7","fenBefore":"K7/8/6P1/8/3k4/8/8/8 w - - 1 4","fenAfter":"K7/6P1/8/8/3k4/8/8/8 b - - 0 4","acceptedMoves":["a8b8","a8b7","a8a7","g6g7"],"coachText":"The pawn is one move from promotion, and his king remains outside the final box.\n\nPlay g7."},{"ply":8,"mover":"black","moveSan":"Ke3","moveUci":"d4e3","fenBefore":"K7/6P1/8/8/3k4/8/8/8 b - - 0 4","fenAfter":"K7/6P1/8/8/8/4k3/8/8 w - - 1 5"},{"ply":9,"mover":"white","moveSan":"g8=Q","moveUci":"g7g8q","fenBefore":"K7/6P1/8/8/8/4k3/8/8 w - - 1 5","fenAfter":"K5Q1/8/8/8/8/4k3/8/8 b - - 0 5","acceptedMoves":["a8b8","a8b7","a8a7","g7g8r","g7g8q"],"coachText":"The two-square first move kept the pawn ahead for the entire race. We finish by promoting.\n\nPlay g8=Q."}],"planCheckpoints":[],"completionText":"When a pawn is still on its starting square, we remember its two-square first move. We count that as one move when we build the square: the pawn may be one tempo faster than it looks.","sequenceId":"rule-of-the-square-box","sequenceIndex":2,"sequenceCount":2,"variants":[{"id":"rule-of-the-square-double-step-variant-1","fen":"1K6/8/8/8/1k6/8/7P/8 w - - 0 1","sideToMove":"white","expectedResult":"win","transform":"shift-files-+1"},{"id":"rule-of-the-square-double-step-variant-2","fen":"7K/8/8/8/7k/8/1P6/8 w - - 0 1","sideToMove":"white","expectedResult":"win","transform":"mirror-files"},{"id":"rule-of-the-square-double-step-variant-3","fen":"K7/8/8/k7/8/8/6P1/8 w - - 0 1","sideToMove":"white","expectedResult":"win","transform":"nudge-bk-0,1"}],"verified":"tablebase"}]},"hasChallenge":true}