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

PawnX: new modest vatiant[Subject Thread] [Add Response]
Matteo Perlini wrote on Mon, Nov 19, 2012 09:58 AM UTC:
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.