November 23, 2009

Sunday chess tactic

Originally posted by Susan Polgar here: Sunday chess tactic

6 comments:

 
author Unknown
authorUrl https://www.blogger.com/profile/07550047986665739779
adminClass blog-admin pid-478539595
data:comment.favicon 
Unknown said...

Hi, I tested the ChessViewer applet it workd, but I don't see different squares colors when I try to change darksquares or lightsquares...

Neither on Firefox 3.5.5 nor IE...

Could you present a page when we could see ChessViewer with such different colors option, and perhaps all with all the parameter we could use ?

Thank you !

 
author Nikolai Pilafov
authorUrl https://www.blogger.com/profile/00695284688005658187
adminClass blog-admin pid-8567400
data:comment.favicon 
Nikolai Pilafov said...

Take a look at Using the Chess Viewer Applet where a new color for DarkSquares is used. Other colors use the same HEX format for the values.

 
author Unknown
authorUrl https://www.blogger.com/profile/07550047986665739779
adminClass blog-admin pid-478539595
data:comment.favicon 
Unknown said...

Thanks, if I post this :

makeChessApplet ( "game.pgn", { LightSquares: "FFFFFF", DarkSquares: "0A0AFF", Background: "FFFFFF", RefreshInterval=10 } )

Is it correct for Color Parameters and RefreshInterval Parameter to refresh the PGN file for live transmission ?

What about all the other possible parameters ? Which names, and how to parameter them in the script code ? Thank you ! :)

 
author Nikolai Pilafov
authorUrl https://www.blogger.com/profile/00695284688005658187
adminClass blog-admin pid-8567400
data:comment.favicon 
Nikolai Pilafov said...

Sure, those are perfectly valid parameters and values. Yes, RefreshInterval usage is also correct and you can use it if you’re planning to broadcast a live game. The only problem I can see is the “game.pgn" which doesn’t really show your intension.

To produce a live broadcast you’d have to have the first parameter as a full external URL (containing the PGN data). Notice that blogger.com doesn’t allow file uploads so you need to find a host for that someplace else. Then you need to update that PGN file with the new moves and your visitors/viewers will get them while watching.

Let me know how it goes.

 
author Unknown
authorUrl https://www.blogger.com/profile/07550047986665739779
adminClass blog-admin pid-478539595
data:comment.favicon 
Unknown said...

Thank you Nicolaï, so :

makeChessApplet ( "http://www.anaywhere.com/game.pgn", { LightSquares: "FFFFFF", DarkSquares: "0A0AFF", Background: "FFFFFF", RefreshInterval=10 } )

Is valid, and refreshes the pgn evert 10 seconds.

Are there more parameters we can include or, do we have them all with that form ?

 
author Nikolai Pilafov
authorUrl https://www.blogger.com/profile/00695284688005658187
adminClass blog-admin pid-8567400
data:comment.favicon 
Nikolai Pilafov said...

Yes, Stéphane
That code will do it and you should be able to make your own live broadcast.

The rest of the CVD’s parameters can the found on its home page but they should only matter to a webmaster who intends to use the applet directly. The publishing method here is a wrapper (built on top of CVD) which allows bloggers to post chess data with minimum effort.