X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpawns.cpp;h=daf656c285cee902fc8700b746fa8b6accc9b8a0;hb=d8f683760c9eb6d2c4714ec83e717dd2143de55c;hp=71ec344394506b821c59341f57b1c2d478bac375;hpb=76d113f5f062a0b977d57642c73948b8f33120ee;p=stockfish diff --git a/src/pawns.cpp b/src/pawns.cpp index 71ec3443..daf656c2 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -2,7 +2,7 @@ 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-2016 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad + Copyright (C) 2015-2017 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 @@ -197,7 +197,7 @@ void init() { { int v = (Seed[r] + (phalanx ? (Seed[r + 1] - Seed[r]) / 2 : 0)) >> opposed; v += (apex ? v / 2 : 0); - Connected[opposed][phalanx][apex][r] = make_score(v, v * 5 / 8); + Connected[opposed][phalanx][apex][r] = make_score(v, v * (r-2) / 4); } }