X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmaterial.cpp;h=69588c8cd597f79c8413bed432b13f2ebeecb2b4;hb=5c81602d14539f8259a715477315e28b5de7cb54;hp=7dc92e80bceefb74d7a45ee7c639737aaf3044b4;hpb=30e8f0c9ada37eaf6a4730215c3d05a4c301ade8;p=stockfish diff --git a/src/material.cpp b/src/material.cpp index 7dc92e80..69588c8c 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008 Marco Costalba + Copyright (C) 2008-2009 Marco Costalba Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,8 +36,8 @@ namespace { - const Value BishopPairMidgameBonus = Value(100); - const Value BishopPairEndgameBonus = Value(100); + const Value BishopPairMidgameBonus = Value(109); + const Value BishopPairEndgameBonus = Value(97); Key KNNKMaterialKey, KKNNMaterialKey; @@ -90,7 +90,7 @@ MaterialInfoTable::MaterialInfoTable(unsigned int numOfEntries) { { std::cerr << "Failed to allocate " << (numOfEntries * sizeof(MaterialInfo)) << " bytes for material hash table." << std::endl; - exit(EXIT_FAILURE); + Application::exit_with_failure(); } clear(); } @@ -342,6 +342,8 @@ EndgameFunctions::EndgameFunctions() { add("KRKRP", BLACK, &ScaleKRKRP); add("KBPKB", WHITE, &ScaleKBPKB); add("KBKBP", BLACK, &ScaleKBKBP); + add("KBPPKB", WHITE, &ScaleKBPPKB); + add("KBKBPP", BLACK, &ScaleKBKBPP); add("KBPKN", WHITE, &ScaleKBPKN); add("KNKBP", BLACK, &ScaleKNKBP); add("KRPPKRP", WHITE, &ScaleKRPPKRP);