Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
AlaskaLinuxUser
picoEngine
Commits
74ad99d8
Commit
74ad99d8
authored
Mar 07, 2019
by
alaskalinuxuser
Browse files
Choice of ply, up to 8.
parent
7348e1a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
Engine.cpp
Engine.cpp
+41
-0
engine.o
engine.o
+0
-0
picoEngine
picoEngine
+0
-0
No files found.
Engine.cpp
View file @
74ad99d8
...
...
@@ -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
()
...
...
engine.o
View file @
74ad99d8
No preview for this file type
picoEngine
View file @
74ad99d8
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment