Question: Implement boar _ brawl, which takes the player's current score player _ score and the opponent's current score opponent _ score, and returns the number
Implement boarbrawl, which takes the player's current score playerscore and the opponent's current score opponentscore, and returns the number of points scored by Boar Brawl when the player rolls dice.
Boar Brawl. A player who rolls zero dice scores three times the absolute difference between the tens digit of the opponents score and the ones digit of the current players score, or whichever is higher. The ones digit refers to the rightmost digit and the tens digit refers to the secondrightmost digit. If a player's score is a single digit less than the tens digit of that player's score is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
