fn sim_game_with_solution(solution: WordId, gbank: WordBank, sbank: WordBank) -> u16 {
    let mut game = FixedWordle::with_state(
        solution,
        (0..sbank.len()).collect::<Vec<_>>(),
        sbank,
        gbank,
        true,
    );

    let mut cur_turn = 1;
    let mut cur_game_bkt = game.update();
    while cur_game_bkt != None {
        cur_game_bkt = game.update();
        cur_turn += 1;
    }
    cur_turn + 1
}
///sims a game using a greedy algo and the given solution word as the solution.
///returns the number of turns the game took. I don't think there is an off by one error in there.
sims a game using a greedy algo and the given solution word as the solution.
returns the number of turns the game took. I don't think there is an off by one error in there.
sims a game using a greedy algo and the given solution word as the solution . returns the number of turns the game took . I don ' t think there is an off by one error in there .
fn sim_game_with_solution(solution: WordId, gbank: WordBank, sbank: WordBank) -> u16 {
    let mut game = FixedWordle::with_state(
        solution,
        (0..sbank.len()).collect::<Vec<_>>(),
        sbank,
        gbank,
        true,
    );
    let mut cur_turn = 1;
    let mut cur_game_bkt = game.update();
    while cur_game_bkt != None {
        cur_game_bkt = game.update();
        cur_turn += 1;
    }
    cur_turn + 1
}
fn sim_game_with_solution ( solution : WordId , gbank : WordBank , sbank : WordBank ) -> u16 { let mut game = FixedWordle :: with_state ( solution , ( 0 .. sbank . len ( ) ) . collect :: < Vec < _ > > ( ) , sbank , gbank , true , ) ; let mut cur_turn = 1 ; let mut cur_game_bkt = game . update ( ) ; while cur_game_bkt != None { cur_game_bkt = game . update ( ) ; cur_turn += 1 ; } cur_turn + 1 }
sims a game using a greedy algo and the given solution word as the solution.
sims a game using a greedy algo and the given solution word as the solution .
solution
WordId
gbank
WordBank
sbank
WordBank
solution
WordId
gbank
WordBank
sbank
WordBank