00001 /* fixedDepthSearcher.cc 00002 */ 00003 #include "osl/checkmate/fixedDepthSearcher.h" 00004 #include "osl/checkmate/fixedDepthSearcher.tcc" 00005 #include "osl/move_generator/addEffectWithEffect.tcc" 00006 #include "osl/numEffectState.tcc" 00007 00008 const osl::checkmate::ProofDisproof 00009 osl::checkmate::FixedDepthSearcher:: 00010 hasCheckmateMoveOfTurn(int depth, Move& best_move) 00011 { 00012 if (state->turn() == BLACK) 00013 return hasCheckmateMove<BLACK>(depth, best_move); 00014 else 00015 return hasCheckmateMove<WHITE>(depth, best_move); 00016 } 00017 00018 const osl::checkmate::ProofDisproof 00019 osl::checkmate::FixedDepthSearcher:: 00020 hasEscapeMoveOfTurn(Move last_move, int depth) 00021 { 00022 if (state->turn() == BLACK) 00023 return hasEscapeMove<BLACK>(last_move, depth); 00024 else 00025 return hasEscapeMove<WHITE>(last_move, depth); 00026 } 00027 00028 const osl::checkmate::ProofDisproof 00029 osl::checkmate::FixedDepthSearcher:: 00030 hasEscapeByMoveOfTurn(Move next_move, int depth) 00031 { 00032 if (state->turn() == BLACK) 00033 return hasEscapeByMove<WHITE>(next_move, depth); 00034 else 00035 return hasEscapeByMove<BLACK>(next_move, depth); 00036 } 00037 00038 /* ------------------------------------------------------------------------- */ 00039 // ;;; Local Variables: 00040 // ;;; mode:c++ 00041 // ;;; c-basic-offset:2 00042 // ;;; End: