Skip to content

Instantly share code, notes, and snippets.

@webcrafts
Last active December 27, 2015 11:19
Show Gist options
  • Save webcrafts/7317498 to your computer and use it in GitHub Desktop.
Save webcrafts/7317498 to your computer and use it in GitHub Desktop.
Ruby Warrior Level2
class Player
def play_turn(warrior)
# cool code goes here
if warrior.feel.empty? then
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