standupmaths / frog_problem

Here is the frog problem code I wrote in an Edinburgh pub.
17 stars 15 forks source link

A few small enhancements #9

Closed septatrix closed 3 years ago

septatrix commented 5 years ago

Hey Matt, I just spend a bit of time cleaning up the code and adding a few small tweaks:

This updates the code base to use Python 3 instead of Python 2 which reaches end of life next year. Additionally it allows the code to be run as an executable directly from the terminal:

./frog-2.py [number of leafes] [log10(number of iterations)]

It also improves the output to allow for more precision and lilypads...

septatrix commented 5 years ago

Code is now updated to work with both python 2 and 3 and an alternative script utilizing multiprocessing has been added.