Merge branch 'hotfix-version' into develop
[purplehaze.git] / src / xboard.h
blob2210f90c8c423e57b71dbfa0f0a5471abfeb11b0
1 /* Copyright (C) 2007-2011 Vincent Ollivier
3 * Purple Haze is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
8 * Purple Haze is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef XBOARD_H
18 #define XBOARD_H
20 #include <iostream>
21 #include <fstream>
22 #include <string>
24 #include "protocol.h"
26 static const int XBOARD_NB_FEATURES = 3;
27 static const std::string XBOARD_FEATURES[XBOARD_NB_FEATURES][2] = {
28 { "myname", "Purple Haze " + static_cast<std::string>(VERSION) },
29 { "setboard", "1" },
30 { "done", "1" },
33 class Xboard : public Protocol
35 private:
36 std::ofstream log;
37 bool force_mode;
38 bool debug_mode;
39 public:
40 Xboard();
41 void loop();
42 void think();
45 #endif /* !XBOARD_H */