Skip to content

Latest commit

 

History

History

grasshopperTerminalGameCombatFunction

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Grasshopper - Terminal game combat function

8 kyu link to kata
my solution

Create a combat function that takes the player's current health and the amount of damage received, and returns the player's new health. Health can't be less than 0.