mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Simplify Endgames::probe()
With this API change we simplify both function and caller site. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+4
-6
@@ -51,17 +51,15 @@ const string engine_info(bool to_uci) {
|
||||
string month, day, year;
|
||||
stringstream s, date(__DATE__); // From compiler, format is "Sep 21 2008"
|
||||
|
||||
s << "Stockfish " << Version;
|
||||
|
||||
if (Version.empty())
|
||||
{
|
||||
date >> month >> day >> year;
|
||||
|
||||
s << "Stockfish " << Tag
|
||||
<< setfill('0') << " " << year.substr(2)
|
||||
<< setw(2) << (1 + months.find(month) / 4)
|
||||
<< setw(2) << day;
|
||||
s << Tag << setfill('0') << " " << year.substr(2)
|
||||
<< setw(2) << (1 + months.find(month) / 4) << setw(2) << day;
|
||||
}
|
||||
else
|
||||
s << "Stockfish " << Version;
|
||||
|
||||
s << cpu64 << popcnt << (to_uci ? "\nid author ": " by ")
|
||||
<< "Tord Romstad, Marco Costalba and Joona Kiiski";
|
||||
|
||||
Reference in New Issue
Block a user