From 03058c5c156c7eb05eb8176e1fa88f9baed9e1aa Mon Sep 17 00:00:00 2001 From: Willardgmoore Date: Thu, 21 Aug 2014 14:58:14 -0700 Subject: [PATCH] Update game.rb corrected errors. previous version required user input \help instead of help and so on for a number of commands. --- lib/game.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/game.rb b/lib/game.rb index 219c932..5bbbb8c 100644 --- a/lib/game.rb +++ b/lib/game.rb @@ -7,8 +7,8 @@ class Game @@messages = { :help => [ "Commands:", - "- \\quit: stop the game", - "- \\help: display this help message" + "- quit: stop the game", + "- help: display this help message" ].join("\n"), :quit => [ "You have quit the game." @@ -49,10 +49,10 @@ def start result = true case @input - when "\\quit" + when "\quit" puts @@messages[:quit] break - when "\\help" + when "\help" puts @@messages[:help] when "go west" result = @player.go_west @@ -71,4 +71,4 @@ def start end end end -end \ No newline at end of file +end