[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Chess pgn reader: it's buggy.
Advertisement

Chess pgn reader: it's buggy.

Moderators: Calcifer, slothy

Postby Batalf » Wed Mar 21, 2007 2:13 pm

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

PGN reader, problem with comments

Postby jcifre » Mon Aug 27, 2007 10:20 am

Hello,
your script is a really fine job. However, i've found that some comments are not displayed correctly. May be it is when the first comment is at the beginning, before 1.e4...

Example, I will insert my post comments in another colour. If you need more information please inform!:

The comment should start here
D00: Apertura de peón de dama 1.d4 d5 - continuaciones poco usuales}
And finish here, this } should be the end of the comment, not to be displayed
From here is thisplayed as commend in the reader, but it shouldn't
1. d4 d5 2. e3 Nf6 3. Bd3 e6 $146 4. Nd2 b6 5. Qe2 Bb7 6. f4 Ne4 7. Ngf3 Be7 8. O-O O-O 9. Ne5 f6 10. Nef3 Nd7 11. a4 Bd6 12. a5 c5 13. a6 { Las blancas amenazan ganar material: a6xb7} Bc6 14. c4 14... Qe7 15. Nb3 15... Rab8 16. Nfd2 16... f5 $15 17. Nf3 Ndf6 18. Ne5 {! Loado el caballo!} Be8 19. cxd5 19... exd5 $17 20. Bb5 20... c4 21. Bxe8 Qxe8 22. Nd2 b5 23. Nxe4 Nxe4 24. g4 24... Rb6 25. Kh1 25... Bxe5 26. dxe5 Rh6 27. Qg2 27... fxg4 28. Qxg4 Qxe5 $1 {Double attack: g4/h1
And here starts the game correctly in the reader. The comments now are, for second time, well readed
1.d4 d5 2.e3 Nf6 3.Bd3 e6 4.Nd2 b6 5.Qe2 Bb7 6.f4 Ne4 7.Ngf3 Be7 8.O-O O-O 9.Ne5 f6 10.Nef3 Nd7 11.a4 Bd6 12.a5 c5 13.a6
Las blancas amenazan ganar material: a6xb7
Bc6 14.c4
[14. b3 Qe8]
Qe7 15.Nb3
[15. cxd5 exd5 16. Nxe4 dxe4 17. Bc4+ Kh8]
Rab8 16.Nfd2
[16. Nbd2]
f5 17.Nf3 Ndf6
[17... dxc4 18. Bxc4 Bd5 19. Nbd2]
18.Ne5
! Loado el caballo!
Be8
[18... Rfc8 19. Nd2]
19.cxd5
[19. Nd2]
exd5 20.Bb5
[20. Nd2]
c4 21.Bxe8 Qxe8
[21... cxb3 22. Bc6]
22.Nd2 b5 23.Nxe4 Nxe4 24.g4
[24. Bd2 Rf6]
Rb6 25.Kh1
[25. g5]
Bxe5 26.dxe5 Rh6 27.Qg2
[27. Rg1 fxg4 28. Rg2 g3]
fxg4 28.Qxg4 Qxe5
Double attack: g4/h1
29.Qg2
[29. fxe5 Nf2+]
Qc7 30.Bd2 Rff6 31.Be1 Rfg6
[31... Qd7 32. Rg1]
32.Qf3 Rxa6
[32... Qf7 33. f5 Rg5 34. Qf4]
33.Rd1
[33. Rxa6 Rxa6 34. Bc3 Rh6]
Qf7 34.f5
[34. Rg1]
Ra2 35.Qf4 Rxb2 36.h4 Rb6
[36... Rb3 37. Qb8+ Qf8 38. Qxa7 Nf6]
37.Qe5 1/2-1/2
jcifre
 
Posts: 9
Joined: Mon Aug 27, 2007 10:03 am

Postby chessplayer » Mon Jul 14, 2008 1:29 pm

chessplayer
 
Posts: 9
Joined: Mon Jul 14, 2008 1:16 pm

Previous

Return to Questions regarding other scripts at www.dhtmlgoodies.com

Who is online

Users browsing this forum: No registered users and 1 guest

cron