-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added BitBoard class with basic masks and starting state
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef BIT_BOARD_H | ||
#define BIT_BOARD_H | ||
|
||
#include <cstdint> | ||
|
||
class BitBoard | ||
{ | ||
private: | ||
/* Static bit masks */ | ||
|
||
// Used to determine whether a move from that direction is valid | ||
static const uint32_t upRight = 0xFBFBEBBA; | ||
static const uint32_t upLeft = 0xFDF9EDBC; | ||
static const uint32_t downRight = 0x79FBF3DB; | ||
static const uint32_t downLeft = 0x7DFDF5DD; | ||
|
||
/* Class member variables */ | ||
const uint32_t m_blackPieces = 0x41C71C3; | ||
const uint32_t m_whitePieces = 0xE3820C38; | ||
const uint32_t m_kings = 0; | ||
|
||
bool m_isBlacksTurn = true; | ||
|
||
public: | ||
|
||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "BitBoard.h" |