For the week five challenge we were tasked with writing a bowling scoring system in Javascript. This was the first challenge done entirely in JS. I used pure Javascript for the back end, Jasmine to test, and jQuery to build to bonus user interface.
My approach to the problem relied heavily on duck typing and polymorphism. In the end this solution, while elegant, placed too much responsibility on the frame classes. This responsibility would have sat better in the game class. However as an exercise in exploring OOD principles in Javascript, it was immensely useful.
Moving forward I’d like to restructure the program to make the game class responsible for calculating score. The front end would also benefit from the use of a dynamic framework like React to render the scores.