Check out Symmetric Chess, our featured variant for March, 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 ]

Comments/Ratings for a Single Item

Earlier Reverse Order Later
Question on Legal moves[Subject Thread] [Add Response]
wdtr2 wrote on Sun, Apr 26, 2020 05:14 PM UTC:

Hello, I am trying to make a game that has 2 royals.  setlegal seems to be the CV php command to add legal moves.  If you are looking through your standard programs that you have made i.e. "legal moves section", setlegal works great.   Let's say you completed your loop.   After you complete the loop you discover your 2nd royal is in check.  I want to clear out all legal moves and re-calculate.   Can you clear or unset the legal moves you set in setlegal a few milliseconds ago?  i.e. unset $legalmoves?


Earlier Reverse Order Later

Permalink to the exact comments currently displayed.