jeudi 16 mai 2019

Design bowling game

Design a Bowling Alley

During the game, players and their scores will be maintained and shown by the system and winner will be declared at the end of the game. Likewise, multiple games can be played in parallel on multiple free lanes.

Some rules to follow:

A game consists of ten sets In each set, the player has two opportunities to knock down ten pins. The score for a set is the total number of pins knocked down, plus bonuses for strikes and spares. A spare is when the player knocks down all ten pins in two tries.If there is spare the player gets 5 bonus points. A strike is when the player knocks down all ten pins on his/her first try.If there is a strike the player gets 10 bonus points. In the final set, a player who rolls a spare or a strike is allowed to roll the extra balls to complete the set.However, only a maximum of three balls can be rolled in the final set.

Actually i'm trying to learn designing pattern question. Please help.

Aucun commentaire:

Enregistrer un commentaire