#ifndef ATAK_H
#define ATAK_H

// includes

#include "board.h"
#include "bitboard.h"

// functions

/*  The attack routines  */
short SqAtakd (board_t *board, short sq, short side);
void GenAtaks (board_t *board);
BitBoard AttackTo (board_t *board, int sq, int side);
BitBoard AttackXTo (board_t *board, int sq, int side);
BitBoard AttackFrom (board_t *board, int sq, int piece, int side);
BitBoard AttackXFrom (board_t *board, int sq, int side);
int PinnedOnKing (board_t *board, int sq, int side);
void FindPins (board_t *board, BitBoard *pin);
int MateScan (board_t *board, int side);

// variables

extern BitBoard Ataks[2][7];


#endif
