/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (c) 2013 Ronald de Man
- Copyright (C) 2016 Marco Costalba, Lucas Braesch
+ Copyright (C) 2016-2017 Marco Costalba, Lucas Braesch
Stockfish is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
namespace Tablebases {
enum WDLScore {
- WDLLoss = -2, // Loss
- WDLCursedLoss = -1, // Loss, but draw under 50-move rule
- WDLDraw = 0, // Draw
- WDLCursedWin = 1, // Win, but draw under 50-move rule
- WDLWin = 2, // Win
+ WDLLoss = -2, // Loss
+ WDLBlessedLoss = -1, // Loss, but draw under 50-move rule
+ WDLDraw = 0, // Draw
+ WDLCursedWin = 1, // Win, but draw under 50-move rule
+ WDLWin = 2, // Win
WDLScoreNone = -1000
};
inline std::ostream& operator<<(std::ostream& os, const WDLScore v) {
- os << (v == WDLLoss ? "Loss" :
- v == WDLCursedLoss ? "Cursed loss" :
- v == WDLDraw ? "Draw" :
- v == WDLCursedWin ? "Cursed win" :
- v == WDLWin ? "Win" : "None");
+ os << (v == WDLLoss ? "Loss" :
+ v == WDLBlessedLoss ? "Blessed loss" :
+ v == WDLDraw ? "Draw" :
+ v == WDLCursedWin ? "Cursed win" :
+ v == WDLWin ? "Win" : "None");
return os;
}