Check out Alice Chess, our featured variant for June, 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

ChessVA computer program
. Program for playing numerous Chess variants against your PC.[All Comments] [Add Comment or Rating]
📝Greg Strong wrote on Mon, Nov 21, 2016 03:05 PM UTC:

Good luck, Aurelian, that is ambitious.  Let me know if you have any questions.

For detecting Griffon/Aanaca attacks in IsSquareAttacked, I would not back up from the target square.  Instead, I would find all Griffons/Aanacas of the color, go through them one-by-one and step out from them to see if they reach the target square.  If they don't attack the target square, you can hand off to the base class implementation of IsSquareAttacked to handle everything else.