BowlingScoreboard is a scoreboard program for bowling game. It is a single page application written in Javascript.
The core of the application is the bowlingBoard model which is implemented in bowlingBoard class. Within bowlingBoard class, a second class frame is used to encapsulate each frame in the game. Instances of frame class are stored in a container within bowlingBoard class. Each instance processes and stores information regarding one particular frame. Methods defined in bowlingBoard class then iterates through each frame and produces global stats.
jquery library is used to process user input and update the content on the webpage.
- User - can start/restart a new game
- User - can record score for each roll in each frame
- User - can know current frame number and roll number
- ScoreBoard - can calculate & update bonus for each frame
- ScoreBoard - can calculate & update total score for each frame
- ScoreBoard - can calculate total score
Download repo and open index.html in browser.
The application is tested using Jasmine framework. To run the test, open SpecRunner.html in browser.
- jquery
- Jasmine