gates_of_moria 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +13 -7
- data/lib/gates_of_moria/quiz.rb +1 -1
- data/lib/gates_of_moria/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,10 +1,20 @@
|
|
1
1
|
# The Gates Of Moria
|
2
2
|
|
3
|
-
|
3
|
+
An adventure in learning Ruby!
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
You'll need Ruby 1.9.3 to play the game. See what version of Ruby you have by running
|
8
|
+
|
9
|
+
ruby --version
|
10
|
+
|
11
|
+
If it doesn't say something like "ruby 1.9.3" at the beginning, then should follow the instructions at https://rvm.io/ to install RVM and then install Ruby 1.9.3 with it.
|
12
|
+
|
13
|
+
Now, you can install the gem to your global gemset with:
|
14
|
+
|
15
|
+
$ gem install gates_of_moria
|
16
|
+
|
17
|
+
Or if you are using Bundler and want to put it in a Gemfile, addd this line to your Gemfile:
|
8
18
|
|
9
19
|
gem 'gates_of_moria'
|
10
20
|
|
@@ -12,13 +22,9 @@ And then execute:
|
|
12
22
|
|
13
23
|
$ bundle
|
14
24
|
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install gates_of_moria
|
18
|
-
|
19
25
|
## Usage
|
20
26
|
|
21
|
-
Run `gates_of_moria` and follow instructions.
|
27
|
+
Run `gates_of_moria` and follow the on-screen instructions. Enjoy!
|
22
28
|
|
23
29
|
## Contributing
|
24
30
|
|
data/lib/gates_of_moria/quiz.rb
CHANGED
@@ -17,7 +17,7 @@ module GatesOfMoria
|
|
17
17
|
player_won = @repl.start
|
18
18
|
|
19
19
|
if player_won
|
20
|
-
@output_buffer.puts "Congratulations! You've opened the door to the mines.\n\nGood luck on your future adventures.\n\nMight I suggest trying RubyWarrior next?\n"
|
20
|
+
@output_buffer.puts "Congratulations! You've opened the door to the mines.\n\nGood luck on your future adventures.\n\nMight I suggest trying RubyWarrior next?\n\n https://github.com/ryanb/ruby-warrior\n"
|
21
21
|
else
|
22
22
|
@output_buffer.puts "\n\nYour adventures with Ruby are not over yet!\n\nMay I suggest trying the game again, or going to read up on how Ruby works at:\n\n http://www.ruby-lang.org/en/documentation/quickstart/\n"
|
23
23
|
end
|