PGN-Viewer

aus Schachcomputer.info Wiki, der freien Schachcomputer-Wissensdatenbank
Zur Navigation springen Zur Suche springen

PGN

Funktion: Durch korrekte Eingabe eines gültigen PGN-Codes, wird automatisch ein Brett zum Nachspielen mit der Partie erzeugt.


Es ist folgendes zu beachten.

  • es muss sich um einen gültigen PGN Code handeln (z.B.: die Bezeichnungen der Figuren müssen englisch (N für Springer, R für Turm usw.) sein)


  • Schauen wir uns ein Beispiel an:

Eingabe:

<pgn>
[Event "IBM Kasparov vs. Deep Blue Rematch"]
[Site "New York, NY USA"]
[Date "1997.05.11"]
[Round "6"]
[White "Deep Blue"]
[Black "Kasparov, Garry"]
[ECO "B17"]
[Result "1-0"]

1.e4 c6 2.d4 d5 3.Nc3 dxe4 4.Nxe4 Nd7 5.Ng5 Ngf6 6.Bd3 e6 7.N1f3 h6 8.Nxe6 Qe7 9.O-O fxe6 10.Bg6+ Kd8 {Kasparov schüttelt kurz den Kopf} 11.Bf4 b5 12.a4 Bb7 13.Re1 Nd5 14.Bg3 Kc8 15.axb5 cxb5 16.Qd3 Bc6 17.Bf5 exf5 18.Rxe7 Bxe7 19.c4 1-0
</pgn>


Wie zu erkennen, steht am Anfang das "pgn Tag" <pgn>, gefolgt von der Notation und am Ende das abschließende pgn Tag </pgn>.


Hat man alles richtig eingegeben, sieht die Sache wie folgt aus.

Die Buttons unter dem Brett erklären sich von selbst.


FEN String Eingabe

  • Einfügen eines FEN-String:


Eingabe:

<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>


Ergibt folgendes Nachspielbrett:


Übersicht der Shortcut Squares

shortcut squares

A1 go to game start
B1 go to previous comment
C1 move 6 half-moves backward
D1 move backward
E1 move forward
F1 move 6 half-moves forward
G1 go to next comment
H1 go to game end

A2 stop autoplay
B2 toggle autoplay
C2 autoplay 1 second
D2 autoplay 2 seconds
E2 autoplay 3 seconds
F2 autoplay 5 seconds
G2 autoplay 10 seconds
H2 autoplay 30 seconds

A3 load first game
B3 jump 50 games backward
C3 load previous game
D3 load random game
E3 load random game at random position
F3 load next game
G3 jump 50 games forward
H3 load last game

A4 jump to previous event
B4 jump to previous round of same event
C4 load previous game of same black player
D4 load previous game of same white player E4 load next game of same white player
F4 load next game of same black player
G4 jump to next round of same event
H4 jump to next event

A6 pause live broadcast automatic refresh
B6 restart live broadcast automatic refresh
C6 load previous finished game
D6 load previous unfinished game
E6 load next unfinished game
F6 load next finished game
H6 force games refresh during live broadcast

A7 toggle show comments in game text
B7 toggle show comments on separate lines in game text
C7 toggle highlight last move
D7 flip board
E7 show white on bottom
F7 toggle autoplay next game
H7 toggle enabling shortcut keys

A8 go to the pgn4web website
D8 show PGN source data


Squares always labeled as if white is at the bottom.

shortcut keys
h , l game start, end (also arrow up, down keys)
u, i find previous, next comment
j , k move backward, forward (also arrow left, right keys)

a start autoplay
0 stop autoplay
1, 2... autoplay 1 sec, 2 sec...

v, m load first, last game
b, n load previous, next game
c, x load random game, random game at random ply

s repeat last search (also enter key)

r, y pause, restart live broadcast automatic refresh
t force games refresh during live broadcast

p toggle comments
o toggle comments on separate lines

g toggle highlighting
f, d flip board, white on bottom


Shorcut keys currently enabled, disable in the chessboard with shift+escape or clicking square H7.