|
@@ -173,11 +173,13 @@ struct chessy::Bitboard
|
|
|
inline Bitboard seOne (void) { return (bits >> 7) & ~aColumn; }
|
|
|
|
|
|
template<Side side>
|
|
|
- inline void pushOne (void);
|
|
|
- template<>
|
|
|
- inline void pushOne<WHITE_SIDE>(void) { moveNorthOne(); }
|
|
|
- template<>
|
|
|
- inline void pushOne<BLACK_SIDE>(void) { moveSouthOne(); }
|
|
|
+ inline void pushOne(void)
|
|
|
+ {
|
|
|
+ if (side == WHITE_SIDE)
|
|
|
+ moveNorthOne();
|
|
|
+ else
|
|
|
+ moveSouthOne();
|
|
|
+ }
|
|
|
|
|
|
inline void operator &= (const Bitboard& b) { bits &= b.bits; }
|
|
|
inline void operator |= (const Bitboard& b) { bits |= b.bits; }
|