generated from PlexSheep/rs-base
Compare commits
1 commit
d18a8f2b85
...
0c90f874b3
Author | SHA1 | Date | |
---|---|---|---|
0c90f874b3 |
1 changed files with 12 additions and 12 deletions
|
@ -84,28 +84,28 @@ fn test_naive_play_predetermined_game_by_manual_guess_and_evak() -> anyhow::Resu
|
|||
game.guess(next_guess, Some("xxfxx".into()))?;
|
||||
|
||||
next_guess = sl.guess_for(&game)?;
|
||||
assert_eq!(next_guess, Word::from("which"));
|
||||
game.guess(next_guess, Some("xxfxx".into()))?;
|
||||
assert_eq!(next_guess, Word::from("their"));
|
||||
game.guess(next_guess, Some("xxffx".into()))?;
|
||||
|
||||
next_guess = sl.guess_for(&game)?;
|
||||
assert_eq!(next_guess, Word::from("which"));
|
||||
game.guess(next_guess, Some("xxfxx".into()))?;
|
||||
assert_eq!(next_guess, Word::from("being"));
|
||||
game.guess(next_guess, Some("xfffx".into()))?;
|
||||
|
||||
next_guess = sl.guess_for(&game)?;
|
||||
assert_eq!(next_guess, Word::from("which"));
|
||||
game.guess(next_guess, Some("xxfxx".into()))?;
|
||||
assert_eq!(next_guess, Word::from("since"));
|
||||
game.guess(next_guess, Some("fcfxf".into()))?;
|
||||
|
||||
next_guess = sl.guess_for(&game)?;
|
||||
assert_eq!(next_guess, Word::from("which"));
|
||||
game.guess(next_guess, Some("xxfxx".into()))?;
|
||||
assert_eq!(next_guess, Word::from("lines"));
|
||||
game.guess(next_guess, Some("xcccc".into()))?;
|
||||
|
||||
next_guess = sl.guess_for(&game)?;
|
||||
assert_eq!(next_guess, Word::from("which"));
|
||||
game.guess(next_guess, Some("xxfxx".into()))?;
|
||||
assert_eq!(next_guess, Word::from("mines"));
|
||||
game.guess(next_guess, Some("xcccc".into()))?;
|
||||
|
||||
next_guess = sl.guess_for(&game)?;
|
||||
assert_eq!(next_guess, Word::from("which"));
|
||||
game.guess(next_guess, Some("xxfxx".into()))?;
|
||||
assert_eq!(next_guess, Word::from("wines"));
|
||||
game.guess(next_guess, Some("xcccc".into()))?;
|
||||
|
||||
// naive is at the moment too bad to solve "nines"
|
||||
assert!(game.finished());
|
||||
|
|
Loading…
Add table
Reference in a new issue