Skip to main content

judge_line

Function judge_line 

Source
pub fn judge_line(raw: &str, check: impl Fn(&str) -> Option<String>) -> Verdict
Expand description

Judge a one-line reply in this format: ANSWER: text that check takes is used, SKIP is a skip, and anything else is refused, by check (Other) or for not being in the format (Format, or Empty for no reply at all).