Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
Expand All @@ -71,4 +71,4 @@ def start
end
end
end
end
end