FOLLOW US!

Woodchuck

How much wood would a woodchuck chuck if a woodchuck could chuck wood?
…….
I mean….. it depends on a lot of stuff…
Could a woodchuck chuck wood if it was hungry?
Could it chuck if it was sleepy?
What if it chucked so much it couldn’t anymore?
And what if a woodchuck was a woodchuck’s version of Kevin Hart or Shaq?
Forget how much; how LONG would this take him??

 

Well, that’s what we are here to find out!
  • Make a function called “woodchuck” that accepts strength & energy. The woodchuck finishes his day in 10 turns, and does it all over again until it physically can’t.
  • Every time a woodchuck chucks wood from a single tree, he loses 5 energy but gains strength.
  • Every 5 trees, the woodchuck gets gym gains / more strength. Every point in strength gives him ability to chuck +1 extra tree!
  • Of course, he also has to eat, so on turns 3 and 7, the woodchuck chucks no wood; instead he gets +5 energy back.
  • At the end of the day, which is 10 turns, the woodchuck goes to sleep and gets half of his current energy back.
  • And remember: a woodchucks strength can’t be more than 100 or less than 1. If a woodchuck’s strength is above this, woodchuck becomes Chuck Norris and the answer is all the wood / infinity! If it’s below, then you came across Charles Barkley, and he doesn’t chuck things around anymore because he is retired! 🙂
Scroll to Top