For this project you will use the following
Use ATDD and Gherkin to develop a set of Acceptance
criteria for each feature and scenario you identify.
You will then use TDD to implement the scenarios as
unit tests and make those tests pass.
You must have a working application when you are
Your last step will be to create a class with a
‘main” method to execute all of the application code you created to demonstrate
the working module.
You will submit:
your feature file with your Gherkin scenarios
your Junit test case your created through TDD
your application code created through TDD
You will create a bowling game.
The program will ask the user to play 10 frames.
Each frame the user will tell the game to roll.
The game will tell the user what they got on their
The game consists of 10 frames as shown below.
In each frame the player has two opportunities to
knock down 10 pins. The score for the
frame is the total number of pins knocked down, plus bonuses for strikes and
A spare is when the player knocks down all 10 pins
in two tries. The bonus for that frame
is the number of pins knocked down by the next roll.
So in frame 3 above, the score is 10 (the total
number knocked down) plus a bonus of 5 (the number of pins knocked down on the
A strike is when the player knocks down all 10 pins
on his first try. The bonus for that
frame is the value of the next two balls rolled.
In the tenth frame a player who rolls a spare or
strike is allowed to roll the extra balls to complete the frame. However no more than three balls can be
rolled in tenth frame.
More detail on the rules. (“Just for reference”)
There are two submission dates for this Projects.
They are representative of two stages of the project
Get Free Quote!
435 Experts Online