new version of the chessboard display: VARIATIONS supported

Discuss anything you like about chess related matters in this forum.
User avatar
Paolo Casaschi
Posts: 1194
Joined: Thu Jan 08, 2009 6:46 am

new version of the chessboard display: VARIATIONS supported

Post by Paolo Casaschi » Thu Mar 08, 2012 6:11 pm

Hello,

Carl just installed a new test version of the chessboard display software for the forum, that SUPPORTS BROWSING VARIATIONS.

Have a look below to a couple of example.

Please try the new software posting PGN games with variations; if you find any PGN game that fails parsing correctly, please let me know by replying to this post. You can also reply here with any feedback.

First example, a good old classic game:


With the new version, you get for free also the support of chess informant symbols; this is a game from chess informant, posted here with permission from the chsess informant publishing company:


You can jump to the position within a variation just by clicking on it.
There's also some keyboard support with the arrow keys:

- arrow up/down: go to game start/end (as before)
- arrow left/right: one move backward/forward (as before)

- shift-arrow up: go to variation start
- shift-arrow down: go to variation end
- shift-arrow left: go to the move before the start of the current variation
- shift-arrow rigth: cycle through alternative moves to the last played move

Last two items require explaination...

assume you have this game: 1. e4 e5 2. Nf3 (2. f4 d5) (2. Nc3 Nf6) Nc6

assume you just clicked on the variation move d5, if you now hit shift-arrow left you jump to e5 (the move preceding the start of the variation, so preceding f4)

assume you just clicked on Nf3, if you now hit repeadetly shift-arrow right you cycle through f4, Nc3 and then back to Nf3 (f4, Nc3 and Nf3 are the alternative moves to the last one played Nf3)

Again, please try posting games with variations and post here your feedback!
Thanks for helping improving the upcoming new release of the chessboard software.
Last edited by Paolo Casaschi on Mon Apr 23, 2012 9:48 pm, edited 2 times in total.

John Foley
Posts: 387
Joined: Thu Oct 15, 2009 9:58 am
Location: Kingston-upon-Thames
Contact:

Re: new version of the chessboard display: VARIATIONS suppor

Post by John Foley » Thu Mar 08, 2012 6:19 pm

Bravo!

User avatar
Carl Hibbard
Posts: 6135
Joined: Fri Dec 08, 2006 8:05 pm
Location: Evesham

Re: new version of the chessboard display: VARIATIONS suppor

Post by Carl Hibbard » Thu Mar 08, 2012 6:59 pm

A nice job yet again Paolo
Cheers
Carl Hibbard

John McKenna

Re: new version of the chessboard display: VARIATIONS suppor

Post by John McKenna » Fri Mar 09, 2012 12:45 am

Last edited by John McKenna on Fri Mar 09, 2012 7:37 pm, edited 2 times in total.

Ian Kingston
Posts: 1072
Joined: Sat Apr 14, 2007 3:16 pm
Location: Sutton Coldfield
Contact:

Re: new version of the chessboard display: VARIATIONS suppor

Post by Ian Kingston » Fri Mar 09, 2012 7:59 am

Is anybody else having problems with this in Chrome? I can't replay the variations. Everything's fine in Firefox and Safari.

User avatar
Carl Hibbard
Posts: 6135
Joined: Fri Dec 08, 2006 8:05 pm
Location: Evesham

Re: new version of the chessboard display: VARIATIONS suppor

Post by Carl Hibbard » Fri Mar 09, 2012 8:02 am

Ian Kingston wrote:Is anybody else having problems with this in Chrome? I can't replay the variations. Everything's fine in Firefox and Safari.
Whoops yes you are right not working here in 17.0.963.78
Cheers
Carl Hibbard

User avatar
Carl Hibbard
Posts: 6135
Joined: Fri Dec 08, 2006 8:05 pm
Location: Evesham

Re: new version of the chessboard display: VARIATIONS suppor

Post by Carl Hibbard » Fri Mar 09, 2012 8:32 am

Carl Hibbard wrote:
Ian Kingston wrote:Is anybody else having problems with this in Chrome? I can't replay the variations. Everything's fine in Firefox and Safari.
Whoops yes you are right not working here in 17.0.963.78
It seems to be a strange intermittent failure but I am trying to nail down the combinations
Cheers
Carl Hibbard

Ian Kingston
Posts: 1072
Joined: Sat Apr 14, 2007 3:16 pm
Location: Sutton Coldfield
Contact:

Re: new version of the chessboard display: VARIATIONS suppor

Post by Ian Kingston » Fri Mar 09, 2012 8:48 am

Carl Hibbard wrote:
Carl Hibbard wrote:
Ian Kingston wrote:Is anybody else having problems with this in Chrome? I can't replay the variations. Everything's fine in Firefox and Safari.
Whoops yes you are right not working here in 17.0.963.78
It seems to be a strange intermittent failure but I am trying to nail down the combinations
Thanks - haven't managed to make it work at all here. I've tried disabling various extensions, but with no effect.

User avatar
Matt Mackenzie
Posts: 6392
Joined: Tue Mar 31, 2009 11:51 pm
Location: Millom, Cumbria

Re: new version of the chessboard display: VARIATIONS suppor

Post by Matt Mackenzie » Fri Mar 09, 2012 11:09 am

John McKenna wrote:
Erm, what game is it actually?? :)
"Set up your attacks so that when the fire is out, it isn't out!" (H N Pillsbury)

User avatar
Paolo Casaschi
Posts: 1194
Joined: Thu Jan 08, 2009 6:46 am

Re: new version of the chessboard display: VARIATIONS suppor

Post by Paolo Casaschi » Fri Mar 09, 2012 1:14 pm

Carl Hibbard wrote:
Ian Kingston wrote:Is anybody else having problems with this in Chrome? I can't replay the variations. Everything's fine in Firefox and Safari.
Whoops yes you are right not working here in 17.0.963.78
That's unexpecetd, I'm doing all development/debugging on chrome.

Try first to EMPY THE BROWSER CACHE, this sometimes helps

Failing that, if you have a chessboard that does not display correctly, right-click on that chessboard and select "inspect element"; on the frame that opens select "console" and look if there's any error message there. In case post here and I'll have a look.

User avatar
Paolo Casaschi
Posts: 1194
Joined: Thu Jan 08, 2009 6:46 am

Re: new version of the chessboard display: VARIATIONS suppor

Post by Paolo Casaschi » Fri Mar 09, 2012 1:17 pm

Ian Kingston wrote:Thanks - haven't managed to make it work at all here. I've tried disabling various extensions, but with no effect.
When you say " haven't managed to make it work at all here", could you be a bit more specific?

Does the chessboard show up or not?
If the chessboard shows up, can you click successfully on the main variation?
What actially does not work?

You cant go to the doctor and just say "I dont feel good" :-)

Mick Norris
Posts: 11404
Joined: Tue Apr 17, 2007 10:12 am
Location: Bolton, Greater Manchester

Re: new version of the chessboard display: VARIATIONS suppor

Post by Mick Norris » Fri Mar 09, 2012 1:30 pm

Paolo Casaschi wrote:
Carl Hibbard wrote:
Ian Kingston wrote:Is anybody else having problems with this in Chrome? I can't replay the variations. Everything's fine in Firefox and Safari.
Whoops yes you are right not working here in 17.0.963.78
That's unexpecetd, I'm doing all development/debugging on chrome.

Try first to EMPY THE BROWSER CACHE, this sometimes helps

Failing that, if you have a chessboard that does not display correctly, right-click on that chessboard and select "inspect element"; on the frame that opens select "console" and look if there's any error message there. In case post here and I'll have a look.
Emptying the cache worked for me, before that I could see the board and play through the game, but not the variations (in Chrome)
Any postings on here represent my personal views

Simon Ansell
Posts: 509
Joined: Tue May 05, 2009 10:27 am

Re: new version of the chessboard display: VARIATIONS suppor

Post by Simon Ansell » Fri Mar 09, 2012 1:41 pm

Same for me, wasn't working in Chrome but empty the cache and it works. Chrome sometimes undesirably caches scripts, or it could be something to do with the HTTP 'Expires' header sent from the web server.

BTW good job Paolo, I've thought about writing something similar before but doesn't seem much point as your code is excellent!

User avatar
Paolo Casaschi
Posts: 1194
Joined: Thu Jan 08, 2009 6:46 am

Re: new version of the chessboard display: VARIATIONS suppor

Post by Paolo Casaschi » Fri Mar 09, 2012 1:54 pm

Simon Ansell wrote:BTW good job Paolo, I've thought about writing something similar before but doesn't seem much point as your code is excellent!
It looks like I just gave you back several coding nights for the next three years :wink:

Ian Kingston
Posts: 1072
Joined: Sat Apr 14, 2007 3:16 pm
Location: Sutton Coldfield
Contact:

Re: new version of the chessboard display: VARIATIONS suppor

Post by Ian Kingston » Fri Mar 09, 2012 1:56 pm

Paolo Casaschi wrote:
Ian Kingston wrote:Thanks - haven't managed to make it work at all here. I've tried disabling various extensions, but with no effect.
When you say " haven't managed to make it work at all here", could you be a bit more specific?

Does the chessboard show up or not?
If the chessboard shows up, can you click successfully on the main variation?
What actially does not work?

You cant go to the doctor and just say "I dont feel good" :-)
I know, but the doctor wasn't in at the time.

But now you're here: clearing the cache has solved the problem. For the record, the specific problem was that the updated version worked exactly the same as the old one: the game displayed and could be replayed, but the variations remained simply text. Clicking on them had no effect and the cursor did not change when hovering over them.

Thanks for supplying the cure. And thanks for the added functionality - much appreciated!

Post Reply