The Chess Variant Pages
Custom Search

[ 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

UPDATED! This item is a play-by-email page
It belongs to categories: Orthodox chess, 
It was last modified on: 2020-10-03
 By Aurelian  Florea. Apothecary Chess-Modern. (Updated!) Large Board variant obtained trough tinkering with known games.[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-09-02 UTC

As long as you're using drop with any, you should change coin1 and coin2 back into variables, since using them as constants is changing the sequence of random number generation, which is changing the spaces picked to drop pieces on.

To store the position, you should be able to set a constant to the value of $space. To use that constant, you should be able to set the system variable space to its value. You should run your randomization code only if your constant is not already set. If it is set, just use the recorded position. As a proof of concept, I modified Brand X Random Chess to work like this, though I kept in some backwards compatibility with the old way it worked for past games.