Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Start Level 2

  • Loading branch information...
commit fe62fbb6fc8d2ee81b55ce44a3261126df329a54 1 parent 7635fef
@gabebw authored
Showing with 17 additions and 9 deletions.
  1. +5 −4 .profile
  2. +11 −4 README
  3. +1 −1  player.rb
View
9 .profile
@@ -1,7 +1,8 @@
-BAhvOhlSdWJ5V2Fycmlvcjo6UHJvZmlsZQ86EEB0b3dlcl9wYXRoSSJPL1Vz
+BAhvOhlSdWJ5V2Fycmlvcjo6UHJvZmlsZRA6EEB0b3dlcl9wYXRoSSJPL1Vz
ZXJzL2dhYmUvLnJ2bS9nZW1zL3J1YnktMS45LjItcDAvZ2Vtcy9ydWJ5d2Fy
cmlvci0wLjEuMS90b3dlcnMvYmVnaW5uZXIGOgZFVDoSQHdhcnJpb3JfbmFt
-ZUkiCWdhYmUGOwdUOgtAc2NvcmVpADoYQGN1cnJlbnRfZXBpY19zY29yZWkA
+ZUkiCWdhYmUGOwdUOgtAc2NvcmVpDzoYQGN1cnJlbnRfZXBpY19zY29yZWkA
OhlAY3VycmVudF9lcGljX2dyYWRlc3sAOhBAZXBpY19zY29yZWkAOhNAYXZl
-cmFnZV9ncmFkZTA6D0BhYmlsaXRpZXNbADoSQGxldmVsX251bWJlcmkGOhdA
-bGFzdF9sZXZlbF9udW1iZXIw
+cmFnZV9ncmFkZTA6D0BhYmlsaXRpZXNbBjoKd2FsayE6EkBsZXZlbF9udW1i
+ZXJpBzoXQGxhc3RfbGV2ZWxfbnVtYmVyMDoRQHBsYXllcl9wYXRoSSIGLgY7
+B0Y=
View
15 README
@@ -1,18 +1,25 @@
-Level 1
+Level 2
-You see before yourself a long hallway with stairs at the end. There is nothing in the way.
+It is too dark to see anything, but you smell sludge nearby.
-Tip: Call warrior.walk! to walk forward in the Player 'play_turn' method.
+Tip: Use warrior.feel.empty? to see if there's anything in front of you, and warrior.attack! to fight it. Remember, you can only do one action (ending in !) per turn.
--------
-|@ >|
+|@ s >|
--------
> = Stairs
@ = gabe (20 HP)
+ s = Sludge (12 HP)
Available Abilities:
+ warrior.feel
+ Returns a Space for the given direction (forward by default).
+
+ warrior.attack!
+ Attack the unit in given direction (forward by default).
+
warrior.walk!
Move in given direction (forward by default).
View
2  player.rb
@@ -1,5 +1,5 @@
class Player
def play_turn(warrior)
- # add your code here
+ warrior.walk!
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.