Hallo,
eine Funktion hatte ich noch vergessen zu erwähnen. Wie erwähnt ist es möglich eine komplette Partie (wenn auch etwas umständlich) per PGN String zum Nachspielen zu erzeugen. Aber was macht man, wenn man nur eine Stellung hat und dazu die nachfolgende Züge posten möchte?
Ganz einfach, man fügt einen FEN String mit in die Notation ein.
Beispiel:
Der bekannte PGN- + FEN-String.
[PGN]
[FEN "r1b2k1B/pppp3p/2n2p2/8/3N2nq/1QP3bN/P2PP1Bp/R4K1R b - - 0 14"]
[Event "SOK theme63 corr"]
[Site "corr"]
[Date "1990.??.??"]
[Round "?"]
[White "Brinkmann, W"]
[Black "Hunstock, J"]
[Result "0-1"]
[ECO "A00"]
[PlyCount "21"]
[EventDate "1990.??.??"]
[EventType "tourn (corr)"]
[EventRounds "2"]
14... d6 15. Nf3 Qxh3 16. Qxb7 Bxb7 17. Bxh3 Nce5 18. Kg2 Bf4 19. Bxg4 Nxg4 20. Rhf1 Kf7 21. Kh3 h1=Q+ 22. Rxh1 Nf2+ 23. Kg2 Nxh1 24. Rxh1 Rxh8 0-1[/PGN]
Das Ergebnis sieht so aus:
[FEN "r1b2k1B/pppp3p/2n2p2/8/3N2nq/1QP3bN/P2PP1Bp/R4K1R b - - 0 14"][Event "SOK theme63 corr"][Site "corr"][Date "1990.??.??"][Round "?"][White "Brinkmann, W"][Black "Hunstock, J"][Result "0-1"][ECO "A00"][PlyCount "21"][EventDate "1990.??.??"][EventType "tourn (corr)"][EventRounds "2"]14... d6 15. Nf3 Qxh3 16. Qxb7 Bxb7 17. Bxh3 Nce5 18. Kg2 Bf4 19. Bxg4 Nxg4 20. Rhf1 Kf7 21. Kh3 h1=Q+ 22. Rxh1 Nf2+ 23. Kg2 Nxh1 24. Rxh1 Rxh8 0-1
Was aber
nicht funktioniert, man kann nicht zu einem bestimmten Punkt in einer kompletten Partie per FEN String springen, um die Partie von dort aus fortzusetzen. Die zusätzliche FEN Eingabe ist nur für Stellungen gedacht.
Gruß,
Micha