Rev 169 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 169 | Rev 185 | ||
|---|---|---|---|
| Line 4... | Line 4... | ||
| 4 | Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad |
4 | Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad |
| 5 | Copyright (C) 2015- |
5 | Copyright (C) 2015-2019 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad |
| 6 | 6 | ||
| 7 | Stockfish is free software: you can redistribute it and/or modify |
7 | Stockfish is free software: you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation, either version 3 of the License, or |
9 | the Free Software Foundation, either version 3 of the License, or |
| 10 | (at your option) any later version. |
10 | (at your option) any later version. |
| Line 26... | Line 26... | ||
| 26 | #include "evaluate.h" |
26 | #include "evaluate.h" |
| 27 | #include "movegen.h" |
27 | #include "movegen.h" |
| 28 | #include "position.h" |
28 | #include "position.h" |
| 29 | #include "search.h" |
29 | #include "search.h" |
| 30 | #include "thread.h" |
30 | #include "thread.h" |
| 31 | #include "tt.h" |
- | |
| 32 | #include "timeman.h" |
31 | #include "timeman.h" |
| - | 32 | #include "tt.h" |
|
| 33 | #include "uci.h" |
33 | #include "uci.h" |
| 34 | #include "syzygy/tbprobe.h" |
34 | #include "syzygy/tbprobe.h" |
| 35 | 35 | ||
| 36 | using namespace std; |
36 | using namespace std; |
| 37 | 37 | ||
| Line 87... | Line 87... | ||
| 87 | 87 | ||
| 88 | is >> token; // Consume "name" token |
88 | is >> token; // Consume "name" token |
| 89 | 89 | ||
| 90 | // Read option name (can contain spaces) |
90 | // Read option name (can contain spaces) |
| 91 | while (is >> token && token != "value") |
91 | while (is >> token && token != "value") |
| 92 | name += |
92 | name += (name.empty() ? "" : " ") + token; |
| 93 | 93 | ||
| 94 | // Read option value (can contain spaces) |
94 | // Read option value (can contain spaces) |
| 95 | while (is >> token) |
95 | while (is >> token) |
| 96 | value += |
96 | value += (value.empty() ? "" : " ") + token; |
| 97 | 97 | ||
| 98 | if (Options.count(name)) |
98 | if (Options.count(name)) |
| 99 | Options[name] = value; |
99 | Options[name] = value; |
| 100 | else |
100 | else |
| 101 | sync_cout << "No such option: " << name << sync_endl; |
101 | sync_cout << "No such option: " << name << sync_endl; |