Reaping Fire HELP SOS

Help I don’t get anything I have been stuck for 3 days.

# The goal is to survive for 30 seconds, and keep the mines intact for at least 30 seconds.

def chooseStrategy():
    enemies = hero.findEnemies()
    # If you can summon a griffin-rider, return "griffin-rider"
    
    # If there is a fangrider on your side of the mines, return "fight-back"
    
    # Otherwise, return "collect-coins"
    

def commandAttack():
    # Command your griffin riders to attack ogres.
    
    pass
    
def pickUpCoin():
    # Collect coins
    
    pass
    
def heroAttack():
    # Your hero should attack fang riders that cross the minefield.
    
    pass
    
while True:
    commandAttack()
    strategy = chooseStrategy()
    # Call a function, depending on what the current strategy is.
    
1 Like

Start by following the instructions.

# If you can summon a griffin-rider, return "griffin-rider"

Write an if statement to make this happen.

# If there is a fangrider on your side of the mines, return "fight-back"

Write an if statement to make this happen.

# Otherwise, return "collect-coins"

Write an else statement.

You need to try and solve it yourself!

1 Like

I don’t get what they mean by return griffin ridder

1 Like

hi @ww2_tanker. by

, @jka2706 means have a line like this:

if hero.gold >= hero.costOf("griffin-rider"):
    return "griffin-rider"

done :grinning: :smiley: :smile: :grin:

nice! :partying_face: :partying_face: