A game consists of ten frames. Frame 1-9 are composed of two rolls. Frame 10 can be composed of up to three rolls depending on if the first rolls in the frame is a strike or a spare.
The game has 2 inputs for each roll and it shows the current round and the score (and the previous score for all rounds).
If there are input errors : you will get an error message when you click submit. The game ends after 10 rounds. π
Run npm start
and navigate to http://localhost:4200/
.
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory.
Use the npm run build-prod
command for a production build.
Run npm run test
to execute the unit tests.
Run npm run test-single-run
to execute the unit tests once.
This project includes an automated workflow that keeps dependencies up-to-date and checks for vulnerabilities:
- Scheduled Updates: Runs daily at 2 AM UTC to automatically update npm dependencies for the project.
- Manual Trigger: You can manually trigger the workflow via GitHub's Actions tab.
- Dependency Management:
- Uses
npm-check-updates
to update all dependencies to their latest versions. - Installs dependencies with
--legacy-peer-deps
to handle peer dependency conflicts.
- Uses
- Vulnerability Scanning: Integrates with Debricked to scan dependencies for vulnerabilities using the Debricked CLI.
- Automated Commits and Pushes: Commits changes if dependencies are updated and pushes them to the
master
branch.
This workflow helps maintain secure, up-to-date dependencies with minimal manual intervention, enhancing both security and stability in the development process.