World Languages, asked by ushareddy85, 6 months ago

Jim is now playing some dice games
this game, 2 dice are rolled.
The score is calculated by summing the
value on the 2 dice. However, when
when
playing in special mode, if the number on
both dice are equal, then one value is
incremented, wrapping around to 1 if its
value was 6.
th
Complete the given function solve to
calculate the score. The parameters are 2
integers and 1 boolean. Each integer bas
the value of one of the dice. The booleah
is true if the special mode is being
played, otherwise it is false . You have to
print the score depending on the values.​

Answers

Answered by ItzRizingStar
0

Answer:

Mr. Jack is now playing some dice games. In this game, 2 dice are rolled. The score is calculated by summing the value on the 2 dice. However, when playing in special mode, if the number on both dice are equal, then one value if incremented, wrapping around to 1 if its value was 6. Write a method Met to calculate the score. The parameters are 2 integers and 1 boolean. Each integer has the value of one of the dice. The boolean is true if the special mode is being played, otherwise it is false. You have to print the score depending on the values. Example Input: 4 3 false Output: 7 Example Input: 4 4 false Output: 8 Example Input 6 6 true Output 7 can any one answer my question in python

Similar questions