pizzas.js contains my solution for the code challenge. The code is organized into ES6 classes. The class for part 2 extends the class from part one.
To use you will need to run
const part1 = new PizzaSingle()
part1.processMove('string of directions')
and
const part2 = new PizzaSquad()
part2.processSquadMove('string of directions')
respectively.
In addition, I have created some basic tests using Mocha and Chai. These can be run by running
mocha tests/test.js
from the command line. Thanks!
Thanks!