diff --git a/84_Super_Star_Trek/rust/src/main.rs b/84_Super_Star_Trek/rust/src/main.rs index 5c9e1058..a7f11d2a 100644 --- a/84_Super_Star_Trek/rust/src/main.rs +++ b/84_Super_Star_Trek/rust/src/main.rs @@ -36,6 +36,7 @@ fn main() { systems::LONG_RANGE_SCAN => commands::perform_long_range_scan(&mut galaxy), systems::COMPUTER => commands::access_computer(&galaxy, command[1..].into()), systems::PHASERS => commands::get_power_and_fire_phasers(&mut galaxy, command[1..].into()), + "XXX" => galaxy.enterprise.destroyed = true, _ => view::print_command_help() } diff --git a/84_Super_Star_Trek/rust/src/view.rs b/84_Super_Star_Trek/rust/src/view.rs index f54bd4cc..73ec39d7 100644 --- a/84_Super_Star_Trek/rust/src/view.rs +++ b/84_Super_Star_Trek/rust/src/view.rs @@ -489,7 +489,6 @@ Your efficiency rating is {efficiency}. pub fn replay() { println!(" - The Federation is in need of a new starship commander for a similar mission -- if there is a volunteer let him step forward and enter 'Aye'") diff --git a/84_Super_Star_Trek/rust/tasks.md b/84_Super_Star_Trek/rust/tasks.md index 5dc79803..7a663304 100644 --- a/84_Super_Star_Trek/rust/tasks.md +++ b/84_Super_Star_Trek/rust/tasks.md @@ -36,11 +36,11 @@ Started after movement and display of stats was finished (no energy management o - [ ] 4 - direction/distance calculator (useful for nav actions I guess) - [x] 5 - galactic name map -- [ ] restarting the game - - after defeat - - and by resigning +- [x] restarting the game + - [x] after defeat + - [x] and by resigning - [ ] time progression - check all areas where time should move, and adjust accordingly - - [ ] defeat due to time expired + - [x] defeat due to time expired - [ ] intro instructions -- [ ] victory +- [x] victory