|
@@ -1,18 +1,33 @@
|
|
#include <iostream>
|
|
#include <iostream>
|
|
|
|
+#include "EngineInfo.h"
|
|
#include "UciParser.h"
|
|
#include "UciParser.h"
|
|
-#include "ChessGame.h"
|
|
|
|
-#include "MoveGeneration.h"
|
|
|
|
|
|
|
|
using namespace std;
|
|
using namespace std;
|
|
using namespace chessy;
|
|
using namespace chessy;
|
|
|
|
|
|
|
|
+
|
|
|
|
+/*!
|
|
|
|
+ * entry point of the program.
|
|
|
|
+ */
|
|
auto main(int argc, char** argv) -> int
|
|
auto main(int argc, char** argv) -> int
|
|
{
|
|
{
|
|
|
|
+ if (argc > 1 && (string(argv[1]) == "-h" || string(argv[1]) == "--help")) {
|
|
|
|
+ cout << info::helpText << endl;
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // display welcome message
|
|
|
|
+ cout << info::welcomeText << endl;
|
|
|
|
+
|
|
|
|
+ // run uci
|
|
UciParser uciParser;
|
|
UciParser uciParser;
|
|
uciParser.parse(cin, cout);
|
|
uciParser.parse(cin, cout);
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
+/*
|
|
ChessGame cg;
|
|
ChessGame cg;
|
|
string line;
|
|
string line;
|
|
getline(cin, line);
|
|
getline(cin, line);
|
|
@@ -67,3 +82,4 @@ auto main(int argc, char** argv) -> int
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+*/
|