X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitbase.cpp;h=402f3fbbc1d65f320ee72fcca36a4480be168775;hp=5e31cc5c8b89a7cf7222c1a0e760393afba621bd;hb=2aec8fb9560dc1fc266437ad4276db2b0381d9d5;hpb=a44c5cf4f77b05a0385c127b7c26cf086a73120e diff --git a/src/bitbase.cpp b/src/bitbase.cpp index 5e31cc5c..402f3fbb 100644 --- a/src/bitbase.cpp +++ b/src/bitbase.cpp @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2010 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2012 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -39,9 +39,9 @@ namespace { void from_index(int index); Result classify_white(const Result db[]); Result classify_black(const Result db[]); - Bitboard wk_attacks() const { return StepAttacksBB[WK][whiteKingSquare]; } - Bitboard bk_attacks() const { return StepAttacksBB[BK][blackKingSquare]; } - Bitboard pawn_attacks() const { return StepAttacksBB[WP][pawnSquare]; } + Bitboard wk_attacks() const { return StepAttacksBB[W_KING][whiteKingSquare]; } + Bitboard bk_attacks() const { return StepAttacksBB[B_KING][blackKingSquare]; } + Bitboard pawn_attacks() const { return StepAttacksBB[W_PAWN][pawnSquare]; } Square whiteKingSquare, blackKingSquare, pawnSquare; Color sideToMove;