Browse files

Successfully passed level 2

  • Loading branch information...
1 parent fe62fbb commit 5b0f68af1808cc1bbb161908e6011a8ecb10468c @gabebw committed Sep 22, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 player.rb
View
6 player.rb
@@ -1,5 +1,9 @@
class Player
def play_turn(warrior)
- warrior.walk!
+ if warrior.feel.empty?
+ warrior.walk!
+ else
+ warrior.attack!
+ end
end
end

0 comments on commit 5b0f68a

Please sign in to comment.