Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad
- Copyright (C) 2015-2018 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad
+ Copyright (C) 2015-2019 Marco Costalba, Joona Kiiski, Gary Linscott, 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
&& pos.see_ge(move))
extension = ONE_PLY;
- // Extension for king moves that change castling rights
- if ( pos.can_castle(us)
- && type_of(movedPiece) == KING
- && depth < 12 * ONE_PLY)
+ else if ( pos.can_castle(us) // Extension for king moves that change castling rights
+ && type_of(movedPiece) == KING)
extension = ONE_PLY;
// Calculate new depth for this move