Rust implementation of the animal guessing game, where the computer learns about animals and then guesses them with yes/no answers.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
mod animals;
|
|
mod prompt;
|
|
mod slot;
|
|
mod testing;
|
|
mod cli_user;
|
|
|
|
use crate::cli_user::CliUser;
|
|
|
|
fn main() {
|
|
//testing::main();
|
|
|
|
let db = animals::AnimalDB::new();
|
|
db.load("animals.txt").unwrap_or(());
|
|
let user = CliUser::new(&db);
|
|
|
|
loop {
|
|
db.start_game(&user);
|
|
}
|
|
}
|
|
|