X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=attack.h;h=e59fe43a45699359c9cc9e13cb8a6b8c29532932;hp=c111cdc1890422ffad7ec7192ffb95e7b188fa75;hb=HEAD;hpb=e15efca6667b2673b4c1a5879a6917eab6800e58 diff --git a/attack.h b/attack.h index c111cdc..e59fe43 100644 --- a/attack.h +++ b/attack.h @@ -1,37 +1,37 @@ - -// attack.h - -#ifndef ATTACK_H -#define ATTACK_H - -// includes - -#include "board.h" -#include "util.h" - -// defines - -#define IncNone 0 - -// "constants" - -extern const sint8 KnightInc[8+1]; -extern const sint8 BishopInc[4+1]; -extern const sint8 RookInc[4+1]; -extern const sint8 QueenInc[8+1]; -extern const sint8 KingInc[8+1]; - -// functions - -extern void attack_init (); - -extern bool is_in_check (const board_t * board, int colour); -extern bool is_attacked (const board_t * board, int to, int colour); -extern bool piece_attack (const board_t * board, int piece, int from, int to); - -extern bool is_pinned (const board_t * board, int from, int to, int colour); - -#endif // !defined ATTACK_H - -// end of attack.h - + +// attack.h + +#ifndef ATTACK_H +#define ATTACK_H + +// includes + +#include "board.h" +#include "util.h" + +// defines + +#define IncNone 0 + +// "constants" + +extern const sint8 KnightInc[8+1]; +extern const sint8 BishopInc[4+1]; +extern const sint8 RookInc[4+1]; +extern const sint8 QueenInc[8+1]; +extern const sint8 KingInc[8+1]; + +// functions + +extern void attack_init (); + +extern bool is_in_check (const board_t * board, int colour); +extern bool is_attacked (const board_t * board, int to, int colour); +extern bool piece_attack (const board_t * board, int piece, int from, int to); + +extern bool is_pinned (const board_t * board, int from, int to, int colour); + +#endif // !defined ATTACK_H + +// end of attack.h +