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 Latest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

LatestLater Reverse Order Earlier
Grand Apothecary Chess-Alert. (Updated!) Very large Board variant obtained trough tinkering with known games.[All Comments] [Add Comment or Rating]
💡📝Aurelian Florea wrote on Tue, Feb 22, 2022 04:41 PM UTC:

I have added in the notes sections explanations about why are the pieces are the way they are in this game. They are not perfect, but I had questions and I wanted to answer them.


💡📝Aurelian Florea wrote on Sat, Feb 12, 2022 01:05 PM UTC:

I have added in this game's initial position one regular pawn on each flank on the fourth row. That is because flank attacks by white where too dangerous in start positions where the black rook of the file was undefended. Also more king safety should he castle.


H. G. Muller wrote on Wed, Aug 25, 2021 09:51 AM UTC:

OK, I replaced the islower everywhere in the include file by fnmatch "*[a-z]*", and isupper by fnmatch "*[A-Z]*". This seems to solve the problem of friend/foe discrimination. I hope there aren't any piece sets that use piece labels that mix upper and lower case...


🕸Fergus Duniho wrote on Tue, Aug 24, 2021 04:49 PM UTC in reply to H. G. Muller from 02:00 PM:

I just updated explode to work with an empty separator, and I wrote and tested this function:

def nolowercase allfalse lambda (islower #0) explode "" #0;

🕸Fergus Duniho wrote on Tue, Aug 24, 2021 04:15 PM UTC in reply to H. G. Muller from 02:00 PM:

would it be possible to have GAME code support operators nolower and noupper, as analogs to isupper and islower?

No, those are already in use for returning arrays of spaces. Also, PHP doesn't have a ctype function for what you want.

E.g. nolower would return true if its string argument would not contain any lower case characters, i.e. if it is all upper case, digits or punctuation.

With #0 standing in for the space with the piece in question, try using match #0 nolower. This will check whether it's among the spaces whose pieces have no lowercase letters in them. Or with #0 as the piece label, you could try not fnmatch "*[a-z]*" space #0. This checks it against a wildcard pattern for containing any lowercase ASCII characters, then negates the result.


H. G. Muller wrote on Tue, Aug 24, 2021 02:00 PM UTC in reply to Fergus Duniho from 12:15 PM:

I will check this out, to see if it is something that should be done in the automatically generated code, or whether this would be something that is better done by the end user in addition to the generated code.

I still want to explore an alternative solution, though: would it be possible to have GAME code support operators nolower and noupper, as analogs to isupper and islower? E.g. nolower would return true if its string argument would not contain any lower case characters, i.e. if it is all upper case, digits or punctuation. The operators isupper and islower turn out not to be very useful in an environment where piece labels can contain digits and punctuation.


🕸Fergus Duniho wrote on Tue, Aug 24, 2021 12:15 PM UTC in reply to H. G. Muller from 08:36 AM:

Perhaps Fergus can tell if there are alternatives to islower and isupper that ignore non-alphabetic characters, (or judge only the first letter in the string), and thus can be used to reliably recognize color in an environment of names that contain digits / punctuation. My first thought would of course be to outlaw such piece names in the fist place: it seems totally silly to allow such names. There doesn't seem any need for it.

My recommendation is to change the piece labels, which I have previously documented how to do. This would require extra programming, though, which could defeat the purpose of having all the code generated for you. Perhaps code for changing piece labels could be automatically generated with the other code. This would require you to enter both the original piece label and the notation you want to use for the piece. See recent comments to the Developer's Guide for details on what kind of code is needed to do this.


H. G. Muller wrote on Tue, Aug 24, 2021 08:36 AM UTC:

I think the problem is that you use piece IDs that are not purely alphabetic, like .ZW or 1BI. The GAME code in the betza.txt include file recognizes the color of the pieces through the operaters islower and isupper for determining whether a piece is black or white. This doesn't work properly on digits or punctuation. So it allows the Mortar in the initial position to capture to the brouhaha square because it does not consider the piece there to be a white one (and thus considers it fair game for capture).

Perhaps Fergus can tell if there are alternatives to islower and isupper that ignore non-alphabetic characters, (or judge only the first letter in the string), and thus can be used to reliably recognize color in an environment of names that contain digits / punctuation. My first thought would of course be to outlaw such piece names in the fist place: it seems totally silly to allow such names. There doesn't seem any need for it.


🕸Fergus Duniho wrote on Mon, Aug 23, 2021 10:19 PM UTC in reply to Aurelian Florea from 01:26 PM:

I am not familiar with how these automatically generated presets work. It looks like it might be trying to emulate logical directions without using the built-in support for logical directions. I cannot tell what piece the Mortar is or how it moves from this code.


💡📝Aurelian Florea wrote on Mon, Aug 23, 2021 01:26 PM UTC:

@ HG&Fergus

I have changed the piece names in the automatically generated preset here: https://www.chessvariants.com/play/pbm/play.php?game=Grand+Apothecary+Chess+1&settings=Applet

The mortar seems to be able to capture from the initial position on the home brouhaha squares. Any thoughts on that?


💡📝Aurelian Florea wrote on Tue, May 18, 2021 06:47 AM UTC:

May an editor look over this article?


💡📝Aurelian Florea wrote on Thu, May 6, 2021 09:25 AM UTC in reply to Aurelian Florea from Sun Apr 25 09:25 AM:

To the editors. Now this article is ready for review.


💡📝Aurelian Florea wrote on Sun, Apr 25, 2021 09:25 AM UTC in reply to Aurelian Florea from Sat Apr 24 04:44 AM:

Actually while testing with the interactive diagram I have noticed some undesired results. So I'm modifying a bit the game. Please allow me some more time.


💡📝Aurelian Florea wrote on Sat, Apr 24, 2021 04:44 AM UTC:

This article is ready for review!


14 comments displayed

LatestLater Reverse Order Earlier

Permalink to the exact comments currently displayed.