Coding challenge for E2 ManageTech.
Write code that will track the growth of a Utopian Tree.
- A Utopian Tree when planted will have the height of 1 meter.
- Each year holds 2 growth cycles.
- Spring - At this time the tree doubles in size.
- Summer - This seasons yields growth of 1 meter.
- The Tree is always planted just before the Spring growth cycle. (this could easily be changed with spring and summer panting methods.)
- A tree can grow no longer than 60 growth cycles
- The number of test run on a tree cannot exceed 10.
Clone the repo and navigate into the E2-Coding-Challenge directory folder.
Run
ruby program_runner.rbFollow the commandline instructions
A few rsepc tests built in the rspec folder
E2-Coding-Challenge/rspec/
rspec models_spec.rb