Better document square flipping helpers

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-04-01 11:30:54 +01:00
parent 9bbd27a80f
commit 6e00aa6bae
3 changed files with 7 additions and 7 deletions

View File

@@ -236,7 +236,7 @@ void Bitboards::init() {
{
Square to = s + Square(c == WHITE ? steps[pt][k] : -steps[pt][k]);
if (square_is_ok(to) && square_distance(s, to) < 3)
if (is_ok(to) && square_distance(s, to) < 3)
StepAttacksBB[make_piece(c, pt)][s] |= to;
}
@@ -273,7 +273,7 @@ namespace {
for (int i = 0; i < 4; i++)
for (Square s = sq + deltas[i];
square_is_ok(s) && square_distance(s, s - deltas[i]) == 1;
is_ok(s) && square_distance(s, s - deltas[i]) == 1;
s += deltas[i])
{
attack |= s;