vampirc / vampirc-uci

A Universal Chess Interface (UCI) protocol parser and message generator.
https://vampirc.kejzar.si
Apache License 2.0
19 stars 7 forks source link

Parser cannot parse "go\n" #9

Closed UlisseMini closed 4 years ago

UlisseMini commented 4 years ago
let mut want = Vec::new();
want.push(vampirc_uci::UciMessage::Go {
    time_control: None,
    search_control: None,
});
assert_eq!(vampirc_uci::parse("go\n"), want);

// thread 'main' panicked at 'assertion failed: `(left == right)`
//   left: `[]`,
//  right: `[Go { time_control: None, search_control: None }]`', src/main.rs:10:5
MadMatt04 commented 4 years ago

Wow, for some reason it took me 2 months to notice these tasks that you submitted. Will have a look at this ASAP.

MadMatt04 commented 4 years ago

I'm not sure just "go" is a valid command. What are the search parameters? I think for search until stop you have to do "go infinite".

UlisseMini commented 4 years ago

It worked on stockfish, so I figured it was valid uci.

MadMatt04 commented 4 years ago

Fair point, this change has now been made (see #10 ) and will appear in 0.8.3