Skip to content

Instantly share code, notes, and snippets.

@a1ip
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save a1ip/7d35f3276ade95577a12 to your computer and use it in GitHub Desktop.

Select an option

Save a1ip/7d35f3276ade95577a12 to your computer and use it in GitHub Desktop.
Ruby warrior solution beginner level 2

Level Score: 12
Time Bonus: 10
Clear Bonus: 4
Total Score: 10 + 26 = 36

class Player
def play_turn(warrior)
if warrior.feel.empty?
warrior.walk!
else
warrior.attack!
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment