Skip to content

Bontgoy/E2-Coding-Challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utopian Tree Test Project

Coding challenge for E2 ManageTech.

Task

Write code that will track the growth of a Utopian Tree.

Rules and Constraints

  • 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.

Running the Program

Clone the repo and navigate into the E2-Coding-Challenge directory folder.

Run

ruby program_runner.rb

Follow the commandline instructions

RSPEC

A few rsepc tests built in the rspec folder

E2-Coding-Challenge/rspec/

rspec models_spec.rb

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages