Procédure insertion fin de partie

Procédure pour transformer un fichier PNG en un FEN et insérer le résultat dans une page du site

On peut trouver les parties compètes sur https://www.pgnmentor.com/files.html

Exemple avec la partie PGN suivante :
1.e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 a6 6. Be3 e6 7. f3 b5 8. g4 h6 9. Qd2 b4 10. Na4 Nbd7 11. O-O-O Ne5 12. b3 Bd7 13. Nb2 d5 14. Bf4 Nxf3 15. Nxf3 Nxe4 16. Qd4 f6 17. Bd3 Bc5 18. Bxe4 Bxd4 19. Bg6+ Kf8 20. Rxd4 a5 21. Re1 Be8 22. Nh4 e5 23. Rd2 a4 24. bxa4 Kg8 25. Bg3 d4 26. Rd3 h5 27. Bxe8 Qxe8 28. g5 Rc8 29. g6 Rh6 30. Rxd4 Rxg6 31. Nxg6 Qxg6 32. Rd2 Rc3 33. Red1 Kh7 34. Kb1 Qf5 35. Be1 Ra3 36. Rd6 Rh3 37. a5 Rxh2 38. Rc1 Qe4 39. a6 Qa8 40. Bxb4 h4 41. Bc5 h3 42. Nd3 Rd2 43. Rb6 h2 44. Nf2 Qd5 45. Be3 Re2 46. Rb3 f5 47. a7 Rxe3 48. Rxe3 Qb7+ 49. Rb3 Qxa7 50. Nh1 f4 51. c4 e4 52. c5 e3 53. c6 e2 54. c7 Qxc7 55. Rxc7 e1=Q+ 56. Rc1 Qe4+ 57. Ka1 Qd4+ 58. Kb1 Qe4+ 59. Ka1 Qd4+ 60. Kb1 Qe4+ 1/2-1/2

Copier la partie ci-dessus dans la case PGN move text du site ci-dessous
https://www.lutanho.net/pgn/pgn2fen.html

Normalement la position initiale FEN doit être la suivante :
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq – 0 1

Puis cliquer sur convert
Il en ressort la liste suivante :
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1
rnbqkbnr/pp1ppppp/8/2p5/4P3/8/PPPP1PP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1p/2bp4/1p1QBBP1/1P3N2/PNP4P/2KR3R b kq – 0 18
r2qk2r/3b2p1/p3pp1p/3p4/1p1bBBP1/1P3N2/PNP4P/2KR3R w kq – 0 19
r2qk2r/3b2p1/p3ppBp/3p4/1p1b1BP1/1P3N2/PNP4P/2KR3R b kq – 1 19
r2q1k1r/3b2p1/p3ppBp/3p4/1p1b1BP1/1P3N2/PNP4P/2KR3R w – – 2 20
r2q1k1r/3b2p1/p3ppBp/3p4/1p1R1BP1/1P3N2/PNP4P/2K4R b – – 0 20
r2q1k1r/3b2p1/4ppBp/p2p4/1p1R1BP1/1P3N2/PNP4P/2K4R w – – 0 21
r2q1k1r/3b2p1/4ppBp/p2p4/1p1R1BP1/1P3N2/PNP4P/2K1R3 b – – 1 21
r2qbk1r/6p1/4ppBp/p2p4/1p1R1BP1/1P3N2/PNP4P/2K1R3 w – – 2 22
r2qbk1r/6p1/4ppBp/p2p4/1p1R1BPN/1P6/PNP4P/2K1R3 b – – 3 22
r2qbk1r/6p1/5pBp/p2pp3/1p1R1BPN/1P6/PNP4P/2K1R3 w – – 0 23
r2qbk1r/6p1/5pBp/p2pp3/1p3BPN/1P6/PNPR3P/2K1R3 b – – 1 23
r2qbk1r/6p1/5pBp/3pp3/pp3BPN/1P6/PNPR3P/2K1R3 w – – 0 24
r2qbk1r/6p1/5pBp/3pp3/Pp3BPN/8/PNPR3P/2K1R3 b – – 0 24
r2qb1kr/6p1/5pBp/3pp3/Pp3BPN/8/PNPR3P/2K1R3 w – – 1 25
r2qb1kr/6p1/5pBp/3pp3/Pp4PN/6B1/PNPR3P/2K1R3 b – – 2 25
r2qb1kr/6p1/5pBp/4p3/Pp1p2PN/6B1/PNPR3P/2K1R3 w – – 0 26
r2qb1kr/6p1/5pBp/4p3/Pp1p2PN/3R2B1/PNP4P/2K1R3 b – – 1 26
r2qb1kr/6p1/5pB1/4p2p/Pp1p2PN/3R2B1/PNP4P/2K1R3 w – – 0 27
r2qB1kr/6p1/5p2/4p2p/Pp1p2PN/3R2B1/PNP4P/2K1R3 b – – 0 27
r3q1kr/6p1/5p2/4p2p/Pp1p2PN/3R2B1/PNP4P/2K1R3 w – – 0 28
r3q1kr/6p1/5p2/4p1Pp/Pp1p3N/3R2B1/PNP4P/2K1R3 b – – 0 28
2r1q1kr/6p1/5p2/4p1Pp/Pp1p3N/3R2B1/PNP4P/2K1R3 w – – 1 29
2r1q1kr/6p1/5pP1/4p2p/Pp1p3N/3R2B1/PNP4P/2K1R3 b – – 0 29
2r1q1k1/6p1/5pPr/4p2p/Pp1p3N/3R2B1/PNP4P/2K1R3 w – – 1 30
2r1q1k1/6p1/5pPr/4p2p/Pp1R3N/6B1/PNP4P/2K1R3 b – – 0 30
2r1q1k1/6p1/5pr1/4p2p/Pp1R3N/6B1/PNP4P/2K1R3 w – – 0 31
2r1q1k1/6p1/5pN1/4p2p/Pp1R4/6B1/PNP4P/2K1R3 b – – 0 31
2r3k1/6p1/5pq1/4p2p/Pp1R4/6B1/PNP4P/2K1R3 w – – 0 32
2r3k1/6p1/5pq1/4p2p/Pp6/6B1/PNPR3P/2K1R3 b – – 1 32
6k1/6p1/5pq1/4p2p/Pp6/2r3B1/PNPR3P/2K1R3 w – – 2 33
6k1/6p1/5pq1/4p2p/Pp6/2r3B1/PNPR3P/2KR4 b – – 3 33
8/6pk/5pq1/4p2p/Pp6/2r3B1/PNPR3P/2KR4 w – – 4 34
8/6pk/5pq1/4p2p/Pp6/2r3B1/PNPR3P/1K1R4 b – – 5 34
8/6pk/5p2/4pq1p/Pp6/2r3B1/PNPR3P/1K1R4 w – – 6 35
8/6pk/5p2/4pq1p/Pp6/2r5/PNPR3P/1K1RB3 b – – 7 35
8/6pk/5p2/4pq1p/Pp6/r7/PNPR3P/1K1RB3 w – – 8 36
8/6pk/3R1p2/4pq1p/Pp6/r7/PNP4P/1K1RB3 b – – 9 36
8/6pk/3R1p2/4pq1p/Pp6/7r/PNP4P/1K1RB3 w – – 10 37
8/6pk/3R1p2/P3pq1p/1p6/7r/PNP4P/1K1RB3 b – – 0 37
8/6pk/3R1p2/P3pq1p/1p6/8/PNP4r/1K1RB3 w – – 0 38
8/6pk/3R1p2/P3pq1p/1p6/8/PNP4r/1KR1B3 b – – 1 38
8/6pk/3R1p2/P3p2p/1p2q3/8/PNP4r/1KR1B3 w – – 2 39
8/6pk/P2R1p2/4p2p/1p2q3/8/PNP4r/1KR1B3 b – – 0 39
q7/6pk/P2R1p2/4p2p/1p6/8/PNP4r/1KR1B3 w – – 1 40
q7/6pk/P2R1p2/4p2p/1B6/8/PNP4r/1KR5 b – – 0 40
q7/6pk/P2R1p2/4p3/1B5p/8/PNP4r/1KR5 w – – 0 41
q7/6pk/P2R1p2/2B1p3/7p/8/PNP4r/1KR5 b – – 1 41
q7/6pk/P2R1p2/2B1p3/8/7p/PNP4r/1KR5 w – – 0 42
q7/6pk/P2R1p2/2B1p3/8/3N3p/P1P4r/1KR5 b – – 1 42
q7/6pk/P2R1p2/2B1p3/8/3N3p/P1Pr4/1KR5 w – – 2 43
q7/6pk/PR3p2/2B1p3/8/3N3p/P1Pr4/1KR5 b – – 3 43
q7/6pk/PR3p2/2B1p3/8/3N4/P1Pr3p/1KR5 w – – 0 44
q7/6pk/PR3p2/2B1p3/8/8/P1Pr1N1p/1KR5 b – – 1 44
8/6pk/PR3p2/2Bqp3/8/8/P1Pr1N1p/1KR5 w – – 2 45
8/6pk/PR3p2/3qp3/8/4B3/P1Pr1N1p/1KR5 b – – 3 45
8/6pk/PR3p2/3qp3/8/4B3/P1P1rN1p/1KR5 w – – 4 46
8/6pk/P4p2/3qp3/8/1R2B3/P1P1rN1p/1KR5 b – – 5 46
8/6pk/P7/3qpp2/8/1R2B3/P1P1rN1p/1KR5 w – – 0 47
8/P5pk/8/3qpp2/8/1R2B3/P1P1rN1p/1KR5 b – – 0 47
8/P5pk/8/3qpp2/8/1R2r3/P1P2N1p/1KR5 w – – 0 48
8/P5pk/8/3qpp2/8/4R3/P1P2N1p/1KR5 b – – 0 48
8/Pq4pk/8/4pp2/8/4R3/P1P2N1p/1KR5 w – – 1 49
8/Pq4pk/8/4pp2/8/1R6/P1P2N1p/1KR5 b – – 2 49
8/q5pk/8/4pp2/8/1R6/P1P2N1p/1KR5 w – – 0 50
8/q5pk/8/4pp2/8/1R6/P1P4p/1KR4N b – – 1 50
8/q5pk/8/4p3/5p2/1R6/P1P4p/1KR4N w – – 0 51
8/q5pk/8/4p3/2P2p2/1R6/P6p/1KR4N b – c3 0 51
8/q5pk/8/8/2P1pp2/1R6/P6p/1KR4N w – – 0 52
8/q5pk/8/2P5/4pp2/1R6/P6p/1KR4N b – – 0 52
8/q5pk/8/2P5/5p2/1R2p3/P6p/1KR4N w – – 0 53
8/q5pk/2P5/8/5p2/1R2p3/P6p/1KR4N b – – 0 53
8/q5pk/2P5/8/5p2/1R6/P3p2p/1KR4N w – – 0 54
8/q1P3pk/8/8/5p2/1R6/P3p2p/1KR4N b – – 0 54
8/2q3pk/8/8/5p2/1R6/P3p2p/1KR4N w – – 0 55
8/2R3pk/8/8/5p2/1R6/P3p2p/1K5N b – – 0 55
8/2R3pk/8/8/5p2/1R6/P6p/1K2q2N w – – 0 56
8/6pk/8/8/5p2/1R6/P6p/1KR1q2N b – – 1 56
8/6pk/8/8/4qp2/1R6/P6p/1KR4N w – – 2 57
8/6pk/8/8/4qp2/1R6/P6p/K1R4N b – – 3 57
8/6pk/8/8/3q1p2/1R6/P6p/K1R4N w – – 4 58
8/6pk/8/8/3q1p2/1R6/P6p/1KR4N b – – 5 58
8/6pk/8/8/4qp2/1R6/P6p/1KR4N w – – 6 59
8/6pk/8/8/4qp2/1R6/P6p/K1R4N b – – 7 59
8/6pk/8/8/3q1p2/1R6/P6p/K1R4N w – – 8 60
8/6pk/8/8/3q1p2/1R6/P6p/1KR4N b – – 9 60
8/6pk/8/8/4qp2/1R6/P6p/1KR4N w – – 10 61

Si on veut montrer uniquement les 6 derniers coups (du 55 au 61), il faut récupérer la ligne finissant par 55 pour les blancs
8/2q3pk/8/8/5p2/1R6/P3p2p/1KR4N w – – 0 55
ou 55 pour les noirs
8/2R3pk/8/8/5p2/1R6/P3p2p/1K5N b – – 0 55

Ce contenu a été publié dans Vide. Vous pouvez le mettre en favoris avec ce permalien.