Mimics the original eight magic ball game.
Ask a question and it will reply with an answer...
Also supports predefined custom answers.
use eight_ball::{Answer, AnswerType, EightBall};
fn main() {
let question = "Am I in charge?";
let answers = vec![
Answer::new("UwU.", AnswerType::Affirmative),
Answer::new("OwO.", AnswerType::NonCommittal),
Answer::new("Baka No.", AnswerType::Negative),
];
let b = EightBall::with_answers(answers);
println!("{}", question);
println!("{}", b.ask(question).unwrap().content);
}
Apache-2.0