Chess Engine
C++ chess engine with movegen, bitboards, and Arduino-friendly docs
Loading...
Searching...
No Matches
attack.h
Go to the documentation of this file.
1#pragma once
2#include "../defs.h"
3
7extern const int knightDirection[8];
8
12extern const int rookDirection[4];
13
17extern const int bishopDirection[4];
18
22extern const int kingDirection[8];
23
32extern bool isSquareAttacked(int sq, int side, const S_BOARD* pos);
const int knightDirection[8]
Knight movement directions in 120-square board representation.
Definition attack.cpp:4
const int bishopDirection[4]
Bishop movement directions in 120-square board representation.
Definition attack.cpp:6
const int rookDirection[4]
Rook movement directions in 120-square board representation.
Definition attack.cpp:5
const int kingDirection[8]
King movement directions in 120-square board representation.
Definition attack.cpp:7
bool isSquareAttacked(int sq, int side, const S_BOARD *pos)
Determines if a given square is attacked by a given side.
Definition attack.cpp:9