mardi 15 novembre 2016

Is there a check or not (chess)

i have to write a c# code, which checks if there is a check on the king or not. I have three variables - attacking figure (queen/bishop/knight/rook), coordinates of the attacig figure and coordinates of the king.

the prgram have to write yes(if there is a check) or no(if there isn't)

P.S. I must not use loops.

Aucun commentaire:

Enregistrer un commentaire