How to post chess games

General discussion about computer chess...

Re: How to post chess games

Postby pgn4web » Thu May 19, 2016 10:27 am

Rebel wrote:Paolo, maybe you can help me with the last glitch before I make the applet public. If you go to 1 of the 4 live channels then you will notice that often (usually with draws) the script refuses to go to the next game.


Not sure if I understand the problem, however pgn4web by default stops polling the live games file once all games are finished. Makes sense for a real life tournament, with one round per day and several games in parallel. For a computer demo you might want to change the behaviour to continue polling the live games file endlessly. This is easily done, but requires a more recent version of pgn4web than the one you are using. With the latest pgn4web, changing
Code: Select all
SetLiveBroadcast(0.01, false, false, false, false);
to
Code: Select all
SetLiveBroadcast(0.01, false, false, false, true);
will have this effect. However the clients will NEVER stop polling your server. Since I'm looking at this line, setting the first parameter to 0.01 does not make any sense. Do you really need to check for new moves every 0.6 seconds? It might work as well with just an handful of clients, but if your audience is growing this might not be a wise choice. For real live games I suggest to keep the default value of 1. I suspect you'll disagree with this and I wont argue with that, but I had to warn you.

Also, there's another way to solve the problem: instead of setting the 5th parameter to true, you could add a dummy live game at the end of the pgn file, ensuring that the clients will keep polling for new data; this has the advantage that, once the event is over you stop adding the dummy live game and the clients will stop bothering your server. As a dummy live game, it's enough to add at the bottom of the pgn file this line:
Code: Select all
[Result "*"] *
pgn4web
 
Posts: 97
Joined: Mon Jun 14, 2010 10:26 pm

Re: How to post chess games

Postby pgn4web » Thu May 19, 2016 2:50 pm

Saw your latest version on http://rebel13.nl/pgn4web/live1.html

I noticed you have move infos in the format
Code: Select all
22. Bd4 {+0.28/14 6}

I assume, first number is eval, then some depth info.
If you are interested, it's not too complex to add a graph to your page to plot these values, similarly to what the TCEC page shows.
You just need some very simple javascript code to parse the data into javascript arrays, then you feed those arrays into a javascript graph library like this one from google: https://developers.google.com/chart/
pgn4web
 
Posts: 97
Joined: Mon Jun 14, 2010 10:26 pm

Re: How to post chess games

Postby Bigbishop » Mon May 29, 2017 6:24 am

Good day, i have some questions? do you love playing chess?
pls reply i just want to know.
Bigbishop
 
Posts: 1
Joined: Wed Apr 19, 2017 3:28 pm

Previous

Return to General Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron