How to post chess games

General discussion about computer chess...
User avatar
Ubaldo Andrea Farina
Posts: 6
Joined: Sun Jul 03, 2011 5:53 pm
Real Name: Ubaldo Andrea Farina

Re: How to post chess games

Post by Ubaldo Andrea Farina » Fri Jul 22, 2011 4:55 pm

pgn4web wrote:However, in the current page you got the URL wrong, instead of

Code: Select all

live-compact.html?pgnData=ChironACCA.pgn?refreshMinutes=1?showComments=true
you should have

Code: Select all

live-compact.html?pgnData=ChironACCA.pgn&refreshMinutes=1&showComments=true
With your current URL it should not work at all as expected.
Sure, thanks, I didn't notice that mistype.

danielb
Posts: 2
Joined: Sun Aug 28, 2011 6:30 pm
Real Name: Daniel

Re: How to post chess games

Post by danielb » Sun Aug 28, 2011 6:31 pm

Hi! How can I change the green colour of the variations?

Jeremy Bernstein
Site Admin
Posts: 1226
Joined: Wed Jun 09, 2010 7:49 am
Real Name: Jeremy Bernstein
Location: Berlin, Germany
Contact:

Re: How to post chess games

Post by Jeremy Bernstein » Sun Aug 28, 2011 6:57 pm

danielb wrote:Hi! How can I change the green colour of the variations?
You can't, since it's hardcoded into the modified source I'm using at the moment. I could be convinced to add a user variable, but what's the goal here?

Jeremy

pgn4web
Posts: 97
Joined: Mon Jun 14, 2010 10:26 pm

Re: How to post chess games

Post by pgn4web » Sun Aug 28, 2011 7:07 pm

Jeremy Bernstein wrote:
danielb wrote:Hi! How can I change the green colour of the variations?
You can't, since it's hardcoded into the modified source I'm using at the moment. I could be convinced to add a user variable, but what's the goal here?

Jeremy
If you want to be consistent with the pgn4web implementation, I chess moves to the css class "move", the current move to the css class "moveOn" and comments to the css class "comment".
It comes natural to assign variations to the class "variation" so that users can define font, color and so on when using pgn4web in their html. From there, it would be straightforward to define a parameter to the board.html file to assign variation colors as well (same as it's done to moves and comments).

danielb
Posts: 2
Joined: Sun Aug 28, 2011 6:30 pm
Real Name: Daniel

Re: How to post chess games

Post by danielb » Sun Aug 28, 2011 7:09 pm

I'd like to use it for my homepage.
To specify my question: Where do I have to look for in the source code, if I wish to change that colour?

Jeremy Bernstein
Site Admin
Posts: 1226
Joined: Wed Jun 09, 2010 7:49 am
Real Name: Jeremy Bernstein
Location: Berlin, Germany
Contact:

Re: How to post chess games

Post by Jeremy Bernstein » Sun Aug 28, 2011 7:17 pm

danielb wrote:I'd like to use it for my homepage.
To specify my question: Where do I have to look for in the source code, if I wish to change that colour?
The hackery begins at line 3525 in pgn4web.js

User avatar
Uly
Posts: 838
Joined: Thu Jun 10, 2010 5:33 am

Re: How to post chess games

Post by Uly » Mon Sep 19, 2011 2:04 am

Feature request:

Currently we have a way to post a PGN starting from the opening position, and a way to have the game starting with the last position. Is there a way to make the PGN start from some arbitrary position?

For instance, by putting something like

[pgn=54][/pgn]

Would produce a chess game that goes directly to move 54 of the game. Then maybe something like:

[pgn=54b][/pgn]

Would make it start from black's 54th move.

(For this post I'd have liked the game to appear with 89...g3 auto-selected)

User avatar
kingliveson
Posts: 1388
Joined: Thu Jun 10, 2010 1:22 am
Real Name: Franklin Titus
Location: 28°32'1"N 81°22'33"W

Re: How to post chess games

Post by kingliveson » Thu Jan 05, 2012 6:03 pm

Is it possible to have autoplaymode?
PAWN : Knight >> Bishop >> Rook >>Queen

Jeremy Bernstein
Site Admin
Posts: 1226
Joined: Wed Jun 09, 2010 7:49 am
Real Name: Jeremy Bernstein
Location: Berlin, Germany
Contact:

Re: How to post chess games

Post by Jeremy Bernstein » Thu Jan 05, 2012 6:15 pm

kingliveson wrote:Is it possible to have autoplaymode?
So that it plays without user interaction, as soon as the page loads?

User avatar
kingliveson
Posts: 1388
Joined: Thu Jun 10, 2010 1:22 am
Real Name: Franklin Titus
Location: 28°32'1"N 81°22'33"W

Re: How to post chess games

Post by kingliveson » Thu Jan 05, 2012 7:29 pm

Jeremy Bernstein wrote:
kingliveson wrote:Is it possible to have autoplaymode?
So that it plays without user interaction, as soon as the page loads?
Yes, if the user specifies.


... chess games in PGN format ...


please see: https://code.google.com/p/pgn4web/wiki/ ... tes_drupal
PAWN : Knight >> Bishop >> Rook >>Queen

Post Reply