mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Retire notation.h
And move the few remaining content under UCI namespace where they belong. No functional change.
This commit is contained in:
committed by
Joona Kiiski
parent
5cbcff55cc
commit
aa60c80ade
13
src/uci.h
13
src/uci.h
@@ -23,6 +23,10 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
class Position;
|
||||
|
||||
namespace UCI {
|
||||
|
||||
class Option;
|
||||
@@ -63,6 +67,15 @@ private:
|
||||
void init(OptionsMap&);
|
||||
void loop(int argc, char* argv[]);
|
||||
|
||||
std::string score_to_uci(Value v, Value alpha = -VALUE_INFINITE, Value beta = VALUE_INFINITE);
|
||||
Move move_from_uci(const Position& pos, std::string& str);
|
||||
const std::string move_to_uci(Move m, bool chess960);
|
||||
|
||||
inline const std::string to_string(Square s) {
|
||||
char ch[] = { 'a' + file_of(s), '1' + rank_of(s), 0 };
|
||||
return ch;
|
||||
}
|
||||
|
||||
} // namespace UCI
|
||||
|
||||
extern UCI::OptionsMap Options;
|
||||
|
||||
Reference in New Issue
Block a user