Check out Grant Acedrex, our featured variant for April, 2024.


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

Comments/Ratings for a Single Item

EarliestEarlier Reverse Order LaterLatest
Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
Aurelian Florea wrote on Wed, Apr 29, 2020 09:50 AM 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.


Vitya Makov wrote on Wed, Apr 29, 2020 02:50 PM 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?


🕸💡📝Fergus Duniho wrote on Wed, Apr 29, 2020 04:52 PM 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.


🕸💡📝Fergus Duniho wrote on Thu, Apr 30, 2020 01:43 AM 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.


Aurelian Florea wrote on Tue, Jun 9, 2020 08:57 AM 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 Tue, Jun 9, 2020 04:25 PM UTC:

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


Aurelian Florea wrote on Thu, Jun 11, 2020 07:48 AM 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 Thu, Jun 11, 2020 08:34 PM 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 Fri, Jun 12, 2020 06:25 AM 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 Fri, Jun 12, 2020 07:39 PM 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 Sat, Jun 13, 2020 04:04 AM UTC:

No matter.

Now it works.

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

Thanks Fergus!


A. M. DeWitt wrote on Sun, Aug 23, 2020 01:17 AM 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.


H. G. Muller wrote on Sun, Aug 23, 2020 05:48 AM UTC in reply to A. M. DeWitt from 01:17 AM:

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.

 


🕸💡📝Fergus Duniho wrote on Sun, Aug 23, 2020 01:29 PM UTC in reply to H. G. Muller from 05:48 AM:

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.


A. M. DeWitt wrote on Sun, Aug 23, 2020 02:16 PM 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 Sun, Aug 23, 2020 03:41 PM UTC in reply to A. M. DeWitt from 02:16 PM:

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.


A. M. DeWitt wrote on Sun, Aug 23, 2020 04:24 PM UTC in reply to Fergus Duniho from 03:41 PM:

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 Sun, Aug 23, 2020 07:06 PM UTC in reply to A. M. DeWitt from 04:24 PM:

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


H. G. Muller wrote on Mon, Aug 24, 2020 11:35 AM UTC in reply to A. M. DeWitt from Sun Aug 23 04:24 PM:

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 Mon, Aug 24, 2020 02:34 PM UTC in reply to H. G. Muller from 11:35 AM:

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 Mon, Aug 24, 2020 02:54 PM UTC in reply to Fergus Duniho from 02:34 PM:

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 Mon, Aug 24, 2020 03:49 PM UTC in reply to H. G. Muller from 02:54 PM:

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


A. M. DeWitt wrote on Sun, Sep 13, 2020 03:47 PM 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 Sun, Sep 13, 2020 05:01 PM UTC in reply to A. M. DeWitt from 03:47 PM:

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.


🕸💡📝Fergus Duniho wrote on Sun, Sep 13, 2020 05:08 PM UTC in reply to A. M. DeWitt from 03:47 PM:

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.


25 comments displayed

EarliestEarlier Reverse Order LaterLatest

Permalink to the exact comments currently displayed.