aboutsummaryrefslogtreecommitdiff
path: root/src/bitboard.h
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-06-26 20:01:36 +0300
committereug-vs <eugene@eug-vs.xyz>2023-06-26 20:01:36 +0300
commit72761f770a73e3e8fac9b57043ed19f084bfb230 (patch)
treebc482dc87dfbddd4cd9a71461d37e9dde41cfb45 /src/bitboard.h
parentc3474b1481a02baefda1abe286d4fbef39597bce (diff)
downloadj1chess-tmp.tar.gz
tmp: save progress from @black-pearltmp
Diffstat (limited to 'src/bitboard.h')
-rw-r--r--src/bitboard.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bitboard.h b/src/bitboard.h
index 6b89c84..02298d3 100644
--- a/src/bitboard.h
+++ b/src/bitboard.h
@@ -1,7 +1,6 @@
#include "types.h"
typedef U64 Bitboard;
-#define BIT (U64)1
int popCount(Bitboard bb);
@@ -12,3 +11,8 @@ Bitboard ls1b(Bitboard bb);
int bitscan(Bitboard bb);
int bitscanAndReset(Bitboard* bb);
+
+Bitboard rankMask(enumSquare sq);
+Bitboard fileMask(enumSquare sq);
+Bitboard diagMask(enumSquare sq);
+Bitboard antiDiasMask(enumSquare sq);