Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setoption #37

Closed
rooklift opened this issue Feb 13, 2021 · 1 comment
Closed

setoption #37

rooklift opened this issue Feb 13, 2021 · 1 comment

Comments

@rooklift
Copy link

rooklift commented Feb 13, 2021

About this:

void ProcessSetOption(string command)

Both names and values can have spaces I'm afraid, so you need to find the (first) instance of name and the first instance of value and then take whatever string is between them as the name, and whatever string is after value as the value.

(Deleting leading and trailing whitespace from them, ofc.)

And I suppose one needs to worry about names that actually contain the string "value" and so need to check there's whitespace on both sides of value, yeah UCI has some questionable parts....

@rooklift
Copy link
Author

rooklift commented Mar 1, 2021

I believe this is working now.

@rooklift rooklift closed this as completed Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant