#HereBeDragons : Dragons vs Wizards


In the next lesson the children will all hire a wizard for their village. The wizard will help protect them but only according to the following algorithm:

FOR each Dragon.Attack
IF Dragon.Magic + Dragon.Intelligence < Wizard.Skill + Wizard.Intelligence
THEN Dragon.Strength = Dragon.Strength – 10
ELSE Wizard.Strength = Wizard.Strength – 5
END IF
IF Dragon.Strength = 0 OR < 0
THEN Dragon.Alive = False
END IF
IF Wizard.Strength = 0 OR < 0
THEN Wizard.Alive = False
END FOR

The dragon’s that attack each village will be picked randomly from this list.

How many dragon’s can the Wizard’s dispel?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s