Menu

(Solved) : 2 New Turn Rules Frustrating Aspect Programming Project Programmers Fact Everyone Solves P Q36032889 . . .

#2 New Turn Rules

A frustrating aspect of programming on a project with otherprogrammers is the fact that everyone solves problems in differentways. Just when you think you know which way things are headed,someone throws a snag in your design.

Objects needed:

  • Die
    • Attributes
      • Current value of the die
    • Actions
      • roll the die
  • DiceSet
    • Attributes
      • An array of six Die
      • The number of dice available to roll. When this number reaches0, it is reset to 6.
      • The score of the current dice
    • Actions
      • roll the available dice
      • score the dice rolled and adjust the number ofdice available to roll
  • Human
    • Attributes
      • Name
      • Accumulative score for the game
      • Score for the current round
    • Actions
      • play a turn
      • decide whether the player can continue or mustcontinue. If he can continue, ask if he wants to roll again ornot.

A human player continues his turn until:

  • His last roll contains no points. If this happens, the playreceives no points for the current turn — he has zilched.
  • If his total accumulated points is less than the meld limit,then he must continue rolling, even if the odds for receivingpoints are poor.
  • If his total accumulated points is greater than or equal tomeld limit, then he has a choice of continuing to roll or stoppingwith his current score.
  • The meld limit for this assignment is 250

Scoring:

  • At the start of a turn, all six dice are rollable.
  • Dice that contribute to the score in a roll are set aside andare not rolled again
  • If all six dice are scored, then all six become rollableagain.
  • As before, a 1 scores 100 points and a 5 scores 50 points. Allother dice at this time score no points.

Expert Answer


Answer to 2 New Turn Rules Frustrating Aspect Programming Project Programmers Fact Everyone Solves P Q36032889 . . .

OR