Check out Atomic Chess, our featured variant for November, 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

Earlier Reverse Order Later
Devingt Chess. Game Courier to play Devingt Chess, on a 10x10 board with Sages (=Camels).[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Tue, Apr 12, 2022 06:59 PM UTC:

I programmed this game today using the fairychess include file. While it was mostly a cut-and-paste job with some tweaking, I also had to fix bugs in Game Courier itself and the fairychess include file, because there were some issues with aliases that I hadn't accounted for.

I was previously wrong about needing to handle castling as a two-part move. I probably had that on my mind from working on code for that recently. Castling has been handled as a one-part move. I tested castling, en passant capture, and Pawn promotion, and it all seems to be working correctly now.


Jean-Louis Cazaux wrote on Tue, Oct 24, 2023 11:24 AM UTC in reply to Fergus Duniho from Tue Apr 12 2022 06:59 PM:

@Fergus: I have an error while playing a game of Devingt Chess with Whites: ILLEGAL: C g1-h4 on turn 9:

There was no C on g1. The piece on g1 is a S.

Go back with your browser's BACK button, reload the page, and try again.

When I edit the file I see this: alias c Z C Z;

I guess here lies the error, shouldn't it be: alias c z C Z;

Could you please correct it Fergus, so we can play our game? Thank you.


Jean-Louis Cazaux wrote on Tue, Oct 24, 2023 12:29 PM UTC in reply to Jean-Louis Cazaux from 11:24 AM:

By testing I see that Black side has the same problem while playing the Camel/Sage.

Getting the same error message.


Jean-Louis Cazaux wrote on Wed, Oct 25, 2023 07:16 AM UTC in reply to Jean-Louis Cazaux from Tue Oct 24 12:29 PM:

@Fergus: in fact the second line of this block just should be deleted.

alias s c S C;

alias c Z C Z;

As is, it is impossible to play the Camels-Sages. I cannot do it and save it because this page is yours.

Please, could you do it? Thank you very much.


🕸📝Fergus Duniho wrote on Wed, Oct 25, 2023 04:17 PM UTC in reply to Jean-Louis Cazaux from 07:16 AM:

@Fergus: in fact the second line of this block just should be deleted.

alias s c S C;

alias c Z C Z;

That wasn't what needed to be fixed. When I changed the setlegal commands in the stalemated subroutine to take strings instead of coordinate arrays as arguments, I didn't make sure they used aliases. I have now fixed that.


Jean-Louis Cazaux wrote on Wed, Oct 25, 2023 04:56 PM UTC in reply to Fergus Duniho from 04:17 PM:

OK thank you Fergus, it solved the issue.

You know better than me of course, but when I duplicated your preset and removed that line, it worked too. Just for me to know and understand how to code these, why is this line with a Z, I see no piece called Z. And if a Z is needed, is it normal to have c Z C Z and not c z C Z? or it is a error with no consequence?

Thanks again


🕸📝Fergus Duniho wrote on Wed, Oct 25, 2023 06:37 PM UTC in reply to Jean-Louis Cazaux from 04:56 PM:

This is explained in the tutorial for the fairychess include file. The first alias says we want to use s and S as notation for the pieces labeled c and C. The second prevents c or C from being used as alternate notation for s or S by setting these as aliases for a non-existent piece. Since the main feature of this piece is that it doesn't exist, the same piece label can be reused.

What you did was reenable the use of c or C as notation.


Jean-Louis Cazaux wrote on Wed, Oct 25, 2023 07:10 PM UTC in reply to Fergus Duniho from 06:37 PM:

@Fergus: thanks for this kind explanation


8 comments displayed

Earlier Reverse Order Later

Permalink to the exact comments currently displayed.