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 ]

Single Comment

New Grand Apothecary Chess Error.[Subject Thread] [Add Response]
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.