Hi Winther,
>>>If you want to know whether your king is threatened, you'll have to
search out where it is, and then check this square with the "attacked?"
command.
Yes, I need to know where the king is, but I don't know how to do that.
Could you please explain it to me more in detail?
I need this piece of code because I want to change my first rule in this
one:
1. if possible and if the king is not in check, it is mandatory to capture
an enemy pawn
Thanks.