///pretty self explanitory, runs `maximum_game_length` on the standard guesses and solutions and
///prints out the result.
pretty self explanitory, runs `maximum_game_length` on the standard guesses and solutions and
prints out the result.
pretty self explanitory runs ` maximum_game_length ` on the standard guesses and solutions and prints out the result .
fn print_maximum_game_length() {
    //load guesses from data files
    let mut guesses = GUESSES_STR
        .split('\n')
        .map(|s| s.trim())
        .filter(|s| !s.is_empty())
        .collect::<Vec<_>>();
    let solutions = SOLUTIONS_STR
        .split('\n')
        .map(|s| s.trim())
        .filter(|s| !s.is_empty())
        .collect::<Vec<_>>();
    //solutions are possible guesses!
    guesses.extend_from_slice(&solutions);
    //do the thing
    let mgl = maximum_game_length(&guesses, &solutions);
    println!("maximum game length: {}", mgl);
}
fn print_maximum_game_length ( ) { //load guesses from data files let mut guesses = GUESSES_STR . split ( '\n' ) . map ( | s | s . trim ( ) ) . filter ( | s | ! s . is_empty ( ) ) . collect :: < Vec < _ > > ( ) ; let solutions = SOLUTIONS_STR . split ( '\n' ) . map ( | s | s . trim ( ) ) . filter ( | s | ! s . is_empty ( ) ) . collect :: < Vec < _ > > ( ) ; //solutions are possible guesses! guesses . extend_from_slice ( & solutions ) ; //do the thing let mgl = maximum_game_length ( & guesses , & solutions ) ; println ! ( " " mgl ) ; }
pretty self explanitory, runs `maximum_game_length` on the standard guesses and solutions and
prints out the result.
pretty self explanitory runs ` maximum_game_length ` on the standard guesses and solutions and prints out the result .