User Tools

The Capsis training online

Back to the table of contents

16. Regeneration around the mothers

Purpose: Refine the regeneration method

Statement of the exercise: Write an alternative regeneration method:

  1. only trees older than 20 years old can regenerate
  2. they give birth to at most regenerationMax trees
  3. these new trees are located around their mother
  4. at a max distance of: maxDistance = mother height / 2;

Helper and solution

Back to the table of contents

16._regeneration_around_the_mothers.txt ยท Last modified: 2021/02/02 16:13 by coligny