GenPawnMoves function

This commit is contained in:
rektdie committed 2024-03-28 20:00:33 +01:00
1 parent b58c6bea77
commit 2aebd781fb
6 files changed
+53 -16

No files matched your search

+5 -14
View File
@@ -1,18 +1,7 @@
#pragma once
#include "bitboards.h"
struct Move {
public:
SQUARE moveFrom;
SQUARE moveTo;
Move(){}
Move(const SQUARE from, const SQUARE to)
: moveFrom(from), moveTo(to) {}
void PrintMove();
};
#include "move.h"
#include "board.h"
// bishop relevant occupancy bit count
constexpr int bishopRelevantBits[64] = {
@@ -213,4 +202,6 @@ void initSliderAttacks();
Bitboard getBishopAttack(int square, U64 occupancy);
Bitboard getRookAttack(int square, U64 occupancy);
Bitboard getQueenAttack(int square, U64 occupancy);
Bitboard getQueenAttack(int square, U64 occupancy);
void GenerateMoves(Board &board);