diff --git a/84_Super_Star_Trek/rust/src/main.rs b/84_Super_Star_Trek/rust/src/main.rs index 78e59531..e51b179e 100644 --- a/84_Super_Star_Trek/rust/src/main.rs +++ b/84_Super_Star_Trek/rust/src/main.rs @@ -1,6 +1,6 @@ use std::process::exit; -use input::prompt; +use input::{prompt, prompt_yes_no}; use model::{Galaxy, systems}; mod input; @@ -12,6 +12,12 @@ fn main() { ctrlc::set_handler(move || { exit(0) }) .expect("Error setting Ctrl-C handler"); + view::title(); + if prompt_yes_no(view::prompts::INSTRUCTIONS) { + view::full_instructions(); + let _ = input::prompt(view::prompts::WHEN_READY); + } + let mut galaxy = Galaxy::generate_new(); let initial_klingons = galaxy.remaining_klingons(); let initial_stardate = galaxy.stardate; diff --git a/84_Super_Star_Trek/rust/src/view.rs b/84_Super_Star_Trek/rust/src/view.rs index a838922b..22f397ef 100644 --- a/84_Super_Star_Trek/rust/src/view.rs +++ b/84_Super_Star_Trek/rust/src/view.rs @@ -154,7 +154,9 @@ pub fn full_instructions() { direction/distance calculations. Option 5 = Galactic Region Name Map This option prints the names of the sixteen major - galactic regions referred to in the game.") + galactic regions referred to in the game. + +") } pub fn enterprise() { diff --git a/84_Super_Star_Trek/rust/tasks.md b/84_Super_Star_Trek/rust/tasks.md index 7d31efd7..20f9a5c1 100644 --- a/84_Super_Star_Trek/rust/tasks.md +++ b/84_Super_Star_Trek/rust/tasks.md @@ -43,5 +43,5 @@ Started after movement and display of stats was finished (no energy management o - [x] check all areas where time should move, and adjust accordingly - looks to only be on nav and repair - [x] defeat due to time expired -- [ ] intro instructions +- [x] intro instructions - [x] victory