mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
bitboard.h reduce
This commit is contained in:
parent
57e512b7a3
commit
5c9a12f6f1
1 changed files with 1 additions and 20 deletions
|
@ -5,29 +5,10 @@
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
namespace Bitboards {
|
namespace Bitboards { void init(); }
|
||||||
|
|
||||||
void init();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
const Bitboard FileABB = 0x0101010101010101ULL;
|
const Bitboard FileABB = 0x0101010101010101ULL;
|
||||||
const Bitboard FileBBB = FileABB << 1;
|
|
||||||
const Bitboard FileCBB = FileABB << 2;
|
|
||||||
const Bitboard FileDBB = FileABB << 3;
|
|
||||||
const Bitboard FileEBB = FileABB << 4;
|
|
||||||
const Bitboard FileFBB = FileABB << 5;
|
|
||||||
const Bitboard FileGBB = FileABB << 6;
|
|
||||||
const Bitboard FileHBB = FileABB << 7;
|
|
||||||
|
|
||||||
const Bitboard Rank1BB = 0xFF;
|
const Bitboard Rank1BB = 0xFF;
|
||||||
const Bitboard Rank2BB = Rank1BB << (8 * 1);
|
|
||||||
const Bitboard Rank3BB = Rank1BB << (8 * 2);
|
|
||||||
const Bitboard Rank4BB = Rank1BB << (8 * 3);
|
|
||||||
const Bitboard Rank5BB = Rank1BB << (8 * 4);
|
|
||||||
const Bitboard Rank6BB = Rank1BB << (8 * 5);
|
|
||||||
const Bitboard Rank7BB = Rank1BB << (8 * 6);
|
|
||||||
const Bitboard Rank8BB = Rank1BB << (8 * 7);
|
|
||||||
|
|
||||||
extern Bitboard AdjacentFilesBB[FILE_NB];
|
extern Bitboard AdjacentFilesBB[FILE_NB];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue