The Chess Variant Pages
Custom Search




[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Latest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

Later Reverse Order EarlierEarliest
This item is an unknown type!
It belongs to categories: Orthodox chess, 
It was last modified on: 2003-01-05
 By Fergus  Duniho. Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-09-13 UTC

Also, the Marseillais Chess preset is exiting with an error as soon as you click the button for it on the game's Game Courier Preset page.

There were a couple typos in the include file for that game. I have now fixed them.


Fergus Duniho wrote on 2020-09-13 UTC

I encountered a bug when using presets I made for large Shogi variants such as Chu Shogi. The bug prevents the blue boxes that highlight legal moves from being displayed for the second part of a double move. Apart from that, everything works normally. I also tried this with the Balanced Marseillais Chess preset, but the bug was not present there. Any ideas as to what's causing this?

It wasn't correctly handling the move "pass". I made an adjustment so that it now works.


Adam DeWitt wrote on 2020-09-13 UTC

I encountered a bug when using presets I made for large Shogi variants such as Chu Shogi. The bug prevents the blue boxes that highlight legal moves from being displayed for the second part of a double move. Apart from that, everything works normally. I also tried this with the Balanced Marseillais Chess preset, but the bug was not present there. Any ideas as to what's causing this?

Also, the Marseillais Chess preset is exiting with an error as soon as you click the button for it on the game's Game Courier Preset page.


Fergus Duniho wrote on 2020-08-24 UTC

Okay, I see we were talking about different things. I have now added a line to set clicks to [] after the code you quoted.


H. G. Muller wrote on 2020-08-24 UTC

Well, if that was changed, it still did not trickle through to me. There is a nocache=true on the URL, and I cleared my browser cache, but the code remains the same and the behavior persist. But we might not be talking about the same popup. I am referring to the 'confirm' box:

if (legalList.includes(moveNotation) || confirm(moveNotation + " is not marked as legal.\nDo you still want to try it?"))
	submit.click();
else
	clearBorders();

Fergus Duniho wrote on 2020-08-24 UTC

I think the problem is that the array 'clicks' is not cleared when canceling the move through the popup.

That was the problem before I fixed it the other day.

It is cleared from resetBoard(), but the popup does not call that; it calls clearBorders().

The popup does call it. The Cancel button calls resetBoard() when it is clicked.


H. G. Muller wrote on 2020-08-24 UTC

I refreshed my browser cache. The Moves field works fine, but Game Courier still isn't displaying legal moves on the board after I try to make an illegal move with the mouse and then cancel it with the popup.

I tried this on an Apothecary preset, and I also see this behavior. I think the problem is that the array 'clicks' is not cleared when canceling the move through the popup. It is cleared from resetBoard(), but the popup does not call that; it calls clearBorders().


Fergus Duniho wrote on 2020-08-23 UTC

It worked in my tests. In case it helps, I have purged the script from Cloudflare's cache.


Adam DeWitt wrote on 2020-08-23 UTC

I refreshed my browser cache. The Moves field works fine, but Game Courier still isn't displaying legal moves on the board after I try to make an illegal move with the mouse and then cancel it with the popup.


Fergus Duniho wrote on 2020-08-23 UTC

I also found another bug that prevents Game Courier from displaying legal moves after trying to make an illegal move with the mouse and then cancelling it with the popup.

That's now fixed. It wasn't resetting a new variable I started using.


Adam DeWitt wrote on 2020-08-23 UTC

I also found another bug that prevents Game Courier from displaying legal moves after trying to make an illegal move with the mouse and then cancelling it with the popup.


Fergus Duniho wrote on 2020-08-23 UTC

The new code is too careless in deciding whether a square coordinate is mentioned in a move string: it uses the JavaScript endsWith method.

Okay, I have corrected it to not use endsWith(). It now stores the final step into a variable before reducing the array to unique values, and it uses a comparison with that variable where it used to use endsWith(). I tested the new code on fission moves in Fusion Chess, and it worked.


H. G. Muller wrote on 2020-08-23 UTC

I have no idea how this is happening

This is happening because the JavaScript for highlighting was changed, to do the highlighting based on the full move string rather than on arrays of [origin, destination] pairs. The new code is too careless in deciding whether a square coordinate is mentioned in a move string: it uses the JavaScript endsWith method. And when you write 16e as destination in a move, this also ends in 6e. So when it loops through all board spaces to see if these occur in a move that starts with the selected piece, it finds these spurious matches.

This can only happen with chess-style coordinates if the file name would be multiple letters. So it did slip through the testing.

Just wait until Fergus fixes it.

 


Adam DeWitt wrote on 2020-08-23 UTC

There seems to be a bug in my rule-enforcing presets for large Shogi variants (except for Shosu Shogi) that makes the legal moves displayed for a piece repeat after ten squares. For example, in the Suzumu Shogi preset, if I click on the black Vice General in the starting position, Game Courier will display the normal legal move to 16e, but it will also show another legal move on 6e (which is still treated as illegal by the preset). I have no idea how this is happening, as I haven't changed the code for displaying legal moves (which is based on stalemated subroutines from teh chess3 and shogi include files) in any of these presets. Any help I can get would be greatly appreciated.

[Edit] I also found another bug that prevents Game Courier from displaying legal moves after trying to make an illegal move by the mouse and then cancelling it.


Aurelian Florea wrote on 2020-06-13 UTC

No matter.

Now it works.

Microsoft edge got an update. I think that is the reason.

Thanks Fergus!


Fergus Duniho wrote on 2020-06-12 UTC

It's not clear what you are talking about. Perhaps you are still confused about what to do, since you have not yet created any pages for Game Courier presets. Select "Post Your Own Game" from the menu and follow the instructions for Game Courier content.


Aurelian Florea wrote on 2020-06-12 UTC

I got it. But in the "description of your submition" (I have earlier noticed that in other boxes of the same type.) I can't post any links as the ok button does not work in the url posting window.


Fergus Duniho wrote on 2020-06-11 UTC

The Games to Play section lists webpages that feature Game Courier presets. It does not include direct links to settings files. To get your game included there, you have to create the right kind of webpage.


Aurelian Florea wrote on 2020-06-11 UTC

Hello Fergus,

Ok! I have done that. I have 2 questions though.

How do I get read of the old presets? I need a clean everything to start over.

Why the new presets for Apothecary Chess- Modern and Apothecary Chess- Classic (it is how I renamed the games) don't appear on the website in the games to play folder.


Fergus Duniho wrote on 2020-06-09 UTC

You can always save any settings file under a new name.


Aurelian Florea wrote on 2020-06-09 UTC

I'd like to modify the names of my apothecary1working preset to apothecary chess modern and apothecary2working preset to apothecary chess classic. If space cannot be used then an underscore is fine.


Fergus Duniho wrote on 2020-04-30 UTC

I updated addcomment.php and safe_email() today. When it sends email to the author(s) or inventor(s) associated with a page, it will now use a subject line that includes what the page is called, and the body of the email will include the comment. This is to make people more likely to read the emails that are sent when a comment is made. I entered some comments to test and debug it, and after I got it working, I deleted them.


Fergus Duniho wrote on 2020-04-29 UTC

There was a bug in the findpiece function that stopped it from finding the location of the Rooks. That's now been fixed, and castling will work.


Vitya Makov wrote on 2020-04-29 UTC

I want to make castling in this game: https://www.chessvariants.com/play/pbm/play.php?game=Capablanca+Random+Chess&log=makov333-cvgameroom-2020-117-516 but cannot do this because of preset. can someone help me?


Aurelian Florea wrote on 2020-04-29 UTC

Thinking about the problem the thought crossed my mind about if you can do an tutorial on expresions with more examples. I have trouble with this and asking you, Fergus, everytime something goes wrong is counter productive.


25 comments displayed

Later Reverse Order EarlierEarliest

Permalink to the exact comments currently displayed.