PGN-Viewer

aus Schachcomputer.info Wiki, der freien Schachcomputer-Wissensdatenbank
Wechseln zu: Navigation, Suche

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. B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5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O 9.h3 Bb7 10.d4 Re8 11.Nbd2 Bf8 12.a4 h6 13.Bc2 exd4 14.cxd4 Nb4 15.Bb1 c5 16.d5 Nd7 17.Ra3 f5 18.Rae3 Nf6 19.Nh2 Kh8 20.b3 bxa4 21.bxa4 c4 22.Bb2 fxe4 23.Nxe4 Nfxd5 24.Rg3 Re6 25.Ng4 Qe8 26.Nxh6 c3 27.Nf5 cxb2 28.Qg4 Bc8 29.Qh4+ Rh6 30.Nxh6 gxh6 31.Kh2 Qe5 32.Ng5 Qf6 33.Re8 Bf5 34.Qxh6+ Qxh6 35.Nf7+ Kh7 36.Bxf5+ Qg6 37.Bxg6+ Kg7 38.Rxa8 Be7 39.Rb8 a5 40.Be4+ Kxf7 41.Bxd5+ 1-0
</pgn>


Ergibt folgendes Nachspielbrett:


Übersicht - 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.

Übersicht - 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.