Skip to content

Commit

Permalink
Fixing script and removal difficulty changing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Jacob Gremlich committed Apr 5, 2019
1 parent f3bb3df commit 1b53e03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/game/game_string_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ pub const GUIDE: &str = "
/*********************************************/
You are a daring explorer with a rust edge
sword. You already decided to explore a tomb
that is believed to hold Attila the Hun!
sword. You are exploring a tomb that is
believed to hold Attila the Hun!
To find your way through the tomb, you must
avoid the dangers along the way. You will
Expand All @@ -26,17 +26,17 @@ pub const COMMANDS: &str = "
Available commands.
***Basic Commands
[m] Show Map
[a] Move position (example command 's 2 2')
[s] Mark suspected danger
[r] Remind nearby dangers
[p] Show current position
[m] Show Map
[a] {x} {y} Move position (example command 'a 2 2')
[s] {x} {y} Suspected danger (example command 's 2 2')
[r] Remind nearby dangers
[p] Show current position
***Help Commands
[g] Show guide
[c] Show commands again
[l] Show Legend
[d] Change difficulty
";

pub const MAP_LEGEND: &str = "
Expand Down
3 changes: 1 addition & 2 deletions src/game/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ pub fn looper() -> Result<()> {
'g' => println!("{}", GUIDE),
'c' => println!("{}", COMMANDS),
'l' => println!("{}", MAP_LEGEND),
'd' => println!("change difficulty"),
'E' => println!("Error parsing first character of command."),
_ => println!("Command not available!"),
}
Expand All @@ -109,7 +108,7 @@ pub fn looper() -> Result<()> {
user_input.clear();

if player_one.player_won_game(&(map_one.x_goal, map_one.y_goal)) {
println!("You win!");
println!("You indeed found Attila the Hun! You win!");
break;
}

Expand Down

0 comments on commit 1b53e03

Please sign in to comment.