Menu

[Solved] Alice and Bob are playing a game of Zombie Dice as described on the last page of this assignment. Both Alice and Bob are using the same strategy

Alice and Bob are playing a game of Zombie Dice as described on the last page of this assignment. Both Alice and Bob are using the same strategy. They keep rolling the dice until they have three brains. Once they have three brains, they end their turn and score the number of brains that they got. Given a sequence of dice rolls in a game of Zombie Dice, we want to figure out who (Alice or Bob) would win, assuming that both follow the above strategy. Write the body of the program called Problem2 that reads in a sequence of dice rolls from a game of Zombie Dice played by Alice and Bob, and determines the score of the game.

CSCI1110
Fall 2019
Assignment 0
Problem 2: Eating Brains
as described on the last page of this
Alice and Bob are playing a gawhere each D is one of B, F, or S, where B stands for Brain, F stands for Footsteps, and S
stands for Shotgun. (See example bExamples
Sample Input Sample Output
Alice 3, Bob 2
B B S
3
SB F
BBF
Alice 3, Bob 4
BB S
S B F
B BF
S BB
SS B
SF F
Alice 0, Bouse python

Expert Answer

Answer to Alice and Bob are playing a game of Zombie Dice as described on the last page of this assignment. Both Alice and Bob are using the same strategy……

OR


Leave a Reply

Your email address will not be published. Required fields are marked *