Skip to content

Instantly share code, notes, and snippets.

@iamkevinlowe
Created November 7, 2018 17:31
Show Gist options
  • Save iamkevinlowe/2d2dc8ddee5547d2d54076cd2c102973 to your computer and use it in GitHub Desktop.
Save iamkevinlowe/2d2dc8ddee5547d2d54076cd2c102973 to your computer and use it in GitHub Desktop.
// Three characters, Barbarian, Archer, and Wizard
// They all can attack, heal, defend (echo/print/etc.. the method name)
// Barbarian has the ability to charge
// Archer has the ability to shoot arrows
// Wizard has the ability to cast magic
// Each character starts with 100 health, 10 strength, 10 magic, 10 speed
// Barbarians will have extra strength of 20
// Archer will have extra speed of 20
// Wizard will have extra magic of 20
// Extra: Characters will now be able to learn new abilities
// example, wizard can learn Barbarian's charge ability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment