Test

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
hgm
Posts: 28353
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Test

Post by hgm »

8 
7 
6 
5 
4 
3 
2 
1 
abcdefgh

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR
8 
7 
6 
5 
4 
3 
2 
1 
abcdefgh

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR

Code: Select all

for(p=0; p<10; p++) a[p] = 1;
for(i=0; i<10; i++) a[i] = 1;
2 
1 
abcde

RN/nr')); document.write(('Got you!

Interactive diagram: pieces movable, right-click resets!

 
 10 
 9 
 8 
 7 
 6 
 5 
 4 
 3 
 2 
 1 
abcdefghij    

Click here to open/close a piece overview. Play it!

Interactive diagram: pieces movable, right-click resets!

 
 8 
 7 
 6 
 5 
 4 
 3 
 2 
 1 
abcdefgh    

Click here to open/close a piece overview.

Move history

smatovic
Posts: 3236
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Test

Post by smatovic »

Fixed "[d / ]" to [d] parser in backend.

Did not implement [fen] tag parsing.

--
Srjda
User avatar
hgm
Posts: 28353
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Test

Post by hgm »

Ah. The fen tags is what we have been using since the infamous upgrade to phpBB 3, and there used to be a button for it. The d tags are a deprecated legacy from the old phpBB 2 forum.

There appears to be a problem with the parsing of the d tag when something follows it.

[Edit] It seems it parses a HTML <br> tag that is appended to the FEN line in the Page Source. I suppose fen.js could be modified to stop at a < character.
User avatar
Ajedrecista
Posts: 2103
Joined: Wed Jul 13, 2011 9:04 pm
Location: Madrid, Spain.

Re: Test.

Post by Ajedrecista »

Hello:
hgm wrote: Fri Mar 01, 2024 9:50 am
8 
7 
6 
5 
4 
3 
2 
1 
abcdefgh

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR
8 
7 
6 
5 
4 
3 
2 
1 
abcdefgh

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR

Code: Select all

for(p=0; p<10; p++) a[p] = 1;
for(i=0; i<10; i++) a[i] = 1;
2 
1 
abcde

RN/nr')); document.write(('Got you!

Interactive diagram: pieces movable, right-click resets!

 
 8 
 7 
 6 
 5 
 4 
 3 
 2 
 1 
abcdefghij    

Click here to open/close a piece overview. Play it!

When quoting, I see that the two FEN strings of the original post are without side to move, castling rights, etc., and both of them are shown in the diagrammes as black to move. Is it a feature? When specifying white to move, it correctly displays the white circle of white to move:

8 
7 
6 
5 
4 
3 
2 
1 
abcdefgh

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1

There have been some successful bug hunting/fixing in the meantime, because the chessboard from FEN/diagramme tags of the original post was wrongly displayed to me some hours ago: the 8×8 chessboard and pieces were OK, but there were also four squares i1, j1, k1 and l1 following the dark/light pattern, with i1 and l1 empty squares, a white or black rook at j1 square and a black bishop at k1 square.

Regards from Spain.

Ajedrecista.
User avatar
hgm
Posts: 28353
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Test

Post by hgm »

Yes, the new forum appended a HTML <br> tag to the FEN line, and this was displayed as an extra black Bishop + Rook. :lol:
smatovic
Posts: 3236
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Test

Post by smatovic »

Looks good!

--
Srdja