Check out Glinski's Hexagonal Chess, our featured variant for May, 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
New Grand Apothecary Chess Error.[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Fri, Mar 4, 2022 01:48 PM UTC in reply to Aurelian Florea from 04:57 AM:

My guess would be that the automatic code generator was never designed to handle imitators.


Aurelian Florea wrote on Fri, Mar 4, 2022 04:57 AM UTC:

HG & Fergus

Hello, Something seems wrong with all my grand apothecary chess presets when the imitator has to move. It always imitates a pawn regardless of what the previous player does. Any of you 2 has a reason? Links Below:

https://www.chessvariants.com/play/pbm/play.php?game=Grand+Apothecary+Chess+1&settings=Applet

https://www.chessvariants.com/play/pbm/play.php?game=Grand+Apothecary+Chess+2&settings=Applet

https://www.chessvariants.com/play/pbm/play.php?game=Grand+Apothecary+Chess+3&settings=Applet


Aurelian Florea wrote on Sun, Jan 9, 2022 12:03 PM UTC in reply to H. G. Muller from Sun Dec 12 2021 06:26 PM:

@Fergus, Could you take a look at the latest on this post?


H. G. Muller wrote on Sun, Dec 12, 2021 06:26 PM UTC in reply to Aurelian Florea from 01:06 PM:

Well, I fixed the previous problem we had as Fergus suggested, by retrieving the shuffle made when the game was created from the constant 'startshuffle', like:

  if isconst startshuffle:        // shuffle has already been determined
    setsystem space @startshuffle;// retrieve it
  else:                           // new game; must shuffle
    ... // perform shuffling on $space
    setconst startshuffle $space;        // save the shuffle for persistent use
  endif;

That is, Fergus told me to write an @ before it, otherwise a wrong, uninitialized variable was retrieved, which led to a board of all white pawns. This seemed to work at the time. If you get a new shuffle now, it can only be because the test "isconst startshuffle" returns false, and it starts making a new shuffle rather than retreiving the old one (which apparently for some reason ceased to exist). If you shuffle again you are unlikely to get the same position. Perhaps Fergus knows how a constant can disappear.


Aurelian Florea wrote on Sun, Dec 12, 2021 01:06 PM UTC:

HG, Have you changed something to the randomization algorithm? The randomization of 2 pieces is now different among the two players on all 3 games!


6 comments displayed

LatestLater Reverse Order Earlier

Permalink to the exact comments currently displayed.