📝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.
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.