|
|
@ -68,8 +68,19 @@ Notice how in our STDIN thread we are calling `Engine::parse` and the handling t |
|
|
|
depending on what kind of token it was. You are responsible for obeying the commands from this thread, the UCI library |
|
|
|
depending on what kind of token it was. You are responsible for obeying the commands from this thread, the UCI library |
|
|
|
just makes it convenient to work with. |
|
|
|
just makes it convenient to work with. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
At this point the engine will send a series of `setoption` commands to you in your STDIN thread. We can use the |
|
|
|
|
|
|
|
`Engine::parse` function to get these: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
EXAMPLE HERE |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Once the options are extracted you will be responsible for configuring your engine with the values. The GUI will send |
|
|
|
|
|
|
|
an `isready` command which you will be responsible for replying to by using `Engine::ready`. |
|
|
|
|
|
|
|
|
|
|
|
**TODO: MORE STUFF WITH EXAMPLES** |
|
|
|
**TODO: MORE STUFF WITH EXAMPLES** |
|
|
|
**THINGS LIKE SENDINB BEST MOVE AFTER CALCULATING, ETC** |
|
|
|
**THINGS LIKE SENDINB BEST MOVE AFTER CALCULATING, ETC** |
|
|
|
|
|
|
|
**RECEIVING SETOPTION COMMANDS AND PROCESSING THEM** |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Other Options |
|
|
|
### Other Options |
|
|
|