Added makefile and rook mask generation
This commit is contained in:
1 parent
9976cb0968
commit
78fe989180
11 files changed
+76
-10
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include "bitboards.h"
|
||||
#include <array>
|
||||
|
||||
class Board {
|
||||
public:
|
||||
std::array<Bitboard, 6> pieces;
|
||||
std::array<Bitboard, 2> colors;
|
||||
Bitboard occupied;
|
||||
|
||||
COLOR sideToMove = White;
|
||||
int halfMoves = 0;
|
||||
int fullMoves = 0;
|
||||
|
||||
std::array<bool, 4> castlingRights = { false, false, false, false };
|
||||
Bitboard enPassantTarget;
|
||||
|
||||
void Init();
|
||||
void Reset();
|
||||
void SetByFen(const char* fen);
|
||||
};
|
||||
Reference in new issue
Block a user