Refactor pawns shelter and storm

Renamed stuff and added comments. The aim is to make more
readable, at least by me ;-) , this newly added part of code.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-03-28 12:44:41 +02:00
parent 76622342ec
commit 10e64e0509
4 changed files with 68 additions and 63 deletions

View File

@@ -263,16 +263,6 @@ extern Square pop_1st_bit(Bitboard* b);
#endif
// relative_rank() returns the relative rank of the closest bit set on the Bitboard.
// Only to be used with bitboards that contain a single file.
template<Color Us>
inline Rank relative_rank(Bitboard b) {
Square s = Us == WHITE ? first_1(b)
: ~last_1(b);
return rank_of(s);
}
extern void print_bitboard(Bitboard b);
extern void bitboards_init();