Question: python2.7 class WarGame(object): 'Implement a Luck Seven Game. A lucky seven is defined as 3 or more 7s being rolled.' def __init__(self,sh): 'Constructor that takes
player. The game compares the values of each individual die of the computer roll to the value at the index of player rolls. If the player gets the same value or greater than the computer, they win the roll. If the player wins 50% or more of all the rolls, they win the rolled 4,6,5,3. 4 beats 3,6 beats 4, 5 beats 3 and 3 beats 2. The player won 100% of the rolls winning the round. This game was initialized with a DiceShaker that had 4 dice >>> ds=DiceShaker (4) 1 Computer rolled: [4, 2, 6, 11 5 1 Computer rolled: [6, 5, 3, 5] Player rolled: [5, 2, 4, 5] 1 Computer rolled: [2, 1, 1, 3] 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
