[ 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 The birth of 3 new variants - part 2 : Grand Apothecary Chess Modern[Subject Thread] [Add Response] 🕸Fergus Duniho wrote on Tue, Jul 13, 2021 03:38 PM UTC in reply to Aurelian Florea from 11:51 AM: What I still need to do is delete a variable from wcastle or bcastle as the rook gets moved. That shouldn't be necessary, as other factors will determine that future castling moves are illegal without doing this. How do I delete a value from an array? Once the King has castled, it might be a bit of an optimization if you set wcastle or bcastle to an empty array, but it shouldn't be necessary.
That shouldn't be necessary, as other factors will determine that future castling moves are illegal without doing this.
Once the King has castled, it might be a bit of an optimization if you set wcastle or bcastle to an empty array, but it shouldn't be necessary.