Skip to content

Instantly share code, notes, and snippets.

@rightfold
Created April 23, 2015 12:02
Show Gist options
  • Save rightfold/825775fdc8556c10c29d to your computer and use it in GitHub Desktop.
Save rightfold/825775fdc8556c10c29d to your computer and use it in GitHub Desktop.
case class Character(name: String, health: Int) {
def getRekt(damage: Int) = copy(health = health - damage)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment