Skip to content

Instantly share code, notes, and snippets.

@radar
Created January 20, 2016 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radar/af7311d9bd9b8efb691d to your computer and use it in GitHub Desktop.
Save radar/af7311d9bd9b8efb691d to your computer and use it in GitHub Desktop.
def attack(other_player)
if strength > other_player.defence
other_player.take_damage
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment