Commit a46fd89a authored by AlaskaLinuxUser's avatar AlaskaLinuxUser

Added UCI option for normal or random.

parent b8d1a9cd
No preview for this file type
......@@ -19,6 +19,7 @@ using namespace std;
string engineName = "picoEngine A01";
string inputString = "";
bool runProgram = true;
bool styleRandom = false;
void inputUCI()
{
......@@ -34,12 +35,21 @@ void inputUCI()
void inputSetOption(string setString)
{
cout << "Setting Options...." << endl;
// Set your options like: setoption name Hash value 32
// Set your options like: setoption name Style value Normal
if (std::string::npos != inputString.find("Random"))
{
styleRandom = true;
cout << "Random Mode." << endl;
}
if (std::string::npos != inputString.find("Normal"))
{
styleRandom = false;
cout << "Normal Mode." << endl;
}
cout << "Options set." << endl;
}
void inputIsReady()
{
// Are we ready for input?
// Do any initialization first.
cout << "readyok" << endl;
}
......@@ -72,7 +82,7 @@ void inputPrint()
int main()
{
cout << "Waiting....";
cout << "Waiting...." << endl;
while(runProgram) {
getline(cin, inputString);
......
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment