Taylor Bockman 7 years ago
parent
commit
3eca0caaa4
  1. 11
      README.md
  2. 4
      src/lib.rs

11
README.md

@ -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
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**
**THINGS LIKE SENDINB BEST MOVE AFTER CALCULATING, ETC**
**RECEIVING SETOPTION COMMANDS AND PROCESSING THEM**
### Other Options

4
src/lib.rs

@ -76,4 +76,8 @@ where
// Again this command must complete before we can say the engine is connected, so panicking at this stage is ok
write!(&mut self.writer, "{}", commands::UCIOK).expect("failed to send `uciok` command");
}
pub fn ready(&mut self) {
// TODO: TESTS TO MAKE SURE IT SENDS READYOK
}
}

Loading…
Cancel
Save