Commit 74ad99d8 authored by alaskalinuxuser's avatar alaskalinuxuser
Browse files

Choice of ply, up to 8.

parent 7348e1a0
......@@ -40,6 +40,7 @@ void inputUCI()
cout << "https://thealaskalinuxuser.wordpress.com" << endl;
// Options can go in here
cout << "option name Style type combo default Normal var Random var Normal" << endl;
cout << "option name Ply type combo default 8 var 1 var 2 var 3 var 4 var 5 var 6 var 7 var 8" << endl;
// End of Options
cout << "uciok" << endl;
}
......@@ -56,6 +57,46 @@ void inputSetOption(string setString)
styleRandom = false;
cout << "Normal Mode." << endl;
}
if (std::string::npos != setString.find("1"))
{
chosenPly = 1;
cout << "Ply 1." << endl;
}
if (std::string::npos != setString.find("2"))
{
chosenPly = 2;
cout << "Ply 2." << endl;
}
if (std::string::npos != setString.find("3"))
{
chosenPly = 3;
cout << "Ply 3." << endl;
}
if (std::string::npos != setString.find("4"))
{
chosenPly = 4;
cout << "Ply 4." << endl;
}
if (std::string::npos != setString.find("5"))
{
chosenPly = 5;
cout << "Ply 5." << endl;
}
if (std::string::npos != setString.find("6"))
{
chosenPly = 6;
cout << "Ply 6." << endl;
}
if (std::string::npos != setString.find("7"))
{
chosenPly = 7;
cout << "Ply 7." << endl;
}
if (std::string::npos != setString.find("8"))
{
chosenPly = 8;
cout << "Ply 8." << endl;
}
cout << "Options set." << endl;
}
void inputIsReady()
......
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