summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6bc16f3)
Function move_is_ok() already catches the move == MOVE_NONE case.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
Piece p1, p2;
Square ksq;
Piece p1, p2;
Square ksq;
- assert(m1 && move_is_ok(m1));
- assert(m2 && move_is_ok(m2));
+ assert(move_is_ok(m1));
+ assert(move_is_ok(m2));
// Case 1: The moving piece is the same in both moves
f2 = move_from(m2);
// Case 1: The moving piece is the same in both moves
f2 = move_from(m2);
bool connected_threat(const Position& pos, Move m, Move threat) {
assert(move_is_ok(m));
bool connected_threat(const Position& pos, Move m, Move threat) {
assert(move_is_ok(m));
- assert(threat && move_is_ok(threat));
+ assert(move_is_ok(threat));
assert(!pos.move_is_capture_or_promotion(m));
assert(!pos.move_is_passed_pawn_push(m));
assert(!pos.move_is_capture_or_promotion(m));
assert(!pos.move_is_passed_pawn_push(m));