For this week’s assignment to redo an old one with functions and modules, I decided to go with my midterm. I found this exercise to be trickier than I thought it would be, probably because I had to organize my code in a way that I had not really considered when I first wrote it. Anyway, here it is:
https://gist.github.com/nicolehe/abb87a9db6a3c11a31e065ef3d656afd.js