X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitbase.cpp;h=3d4fad991189ee8bba77469ca3d0dadb925b9a7c;hp=ac03120f5f97cb59a6c868fca9698f4ffc38d6a9;hb=d9113d127b491db0a427a416217d55d3d298c25e;hpb=469e7c5143af0785d6ba41cdef731ac1f403141c diff --git a/src/bitbase.cpp b/src/bitbase.cpp index ac03120f..3d4fad99 100644 --- a/src/bitbase.cpp +++ b/src/bitbase.cpp @@ -17,20 +17,10 @@ along with this program. If not, see . */ - -//// -//// Includes -//// - #include #include "bitboard.h" -#include "square.h" - - -//// -//// Local definitions -//// +#include "types.h" namespace { @@ -47,9 +37,9 @@ namespace { bool is_legal() const; bool is_immediate_draw() const; bool is_immediate_win() const; - Bitboard wk_attacks() const { return StepAttackBB[WK][whiteKingSquare]; } - Bitboard bk_attacks() const { return StepAttackBB[BK][blackKingSquare]; } - Bitboard pawn_attacks() const { return StepAttackBB[WP][pawnSquare]; } + Bitboard wk_attacks() const { return StepAttacksBB[WK][whiteKingSquare]; } + Bitboard bk_attacks() const { return StepAttacksBB[BK][blackKingSquare]; } + Bitboard pawn_attacks() const { return StepAttacksBB[WP][pawnSquare]; } Square whiteKingSquare, blackKingSquare, pawnSquare; Color sideToMove; @@ -63,10 +53,6 @@ namespace { } -//// -//// Functions -//// - void generate_kpk_bitbase(uint8_t bitbase[]) { bool repeat;