Comments/Ratings for a Single Item
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
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.
@Fergus, Could you take a look at the latest on this post?
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
My guess would be that the automatic code generator was never designed to handle imitators.
6 comments displayed
Permalink to the exact comments currently displayed.
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!