HighTwoGame class: 1. You must implement the instance variables and methods listed above. 2. You may implement any other instance variables and methods that help you build the rest of the game. 3. The constructor should take the names of the players as arguments. 4. Hints: The playOneGame method - It should not take any arguments. - Get it working correctly before starting the playManyGames. You will need to add one line of code to DiceGameProgram.py. - When it's working correctly, you should get output similar to Figure 1: (a) below. . The playManyGames method - It should take the number of games to play as an argument. - This method should internally play the indicated number of games, keep track of how many games each player wins, and report the winner. - You will need to write code that calls this method in DiceGameProgram.py. When it's working correctly, you should get output similar to Figure 1: (b) below.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

can you do this part now?

HighTwoGame class:
1. You must implement the instance variables and methods listed above.
2. You may implement any other instance variables and methods that help you build the rest of the game.
3. The constructor should take the names of the players as arguments.
4. Hints:
• The playOneGame method
It should not take any arguments.
Get it working correctly before starting the playManyGames.
You will need to add one line of code to DiceGameProgram.py.
When it's working correctly, you should get output similar to Figure 1: (a) below.
• The playManyGames method
It should take the number of games to play as an argument.
This method should internally play the indicated number of games, keep track of how many
games each player wins, and report the winner.
You will need to write code that calls this method in DiceGameProgram.py.
When it's working correctly, you should get output similar to Figure 1: (b) below.
C. C:\WINDOWS\SY...
Game one:
Matt rolled 7
Ashley rolled 7
Tie
Game two:
Dexter rolled 5
Eugene rolled 2
Dexter wins!
(program exited with code: 0)
Press any key to continue
(a) playOneGame
X
|
0:4. C:\WINDOWS\SY...
The score is 6 to 3
Dexter wins!
(program exited with code: 0)
Press any key to continue . .
(b) playManyGames
||
Transcribed Image Text:HighTwoGame class: 1. You must implement the instance variables and methods listed above. 2. You may implement any other instance variables and methods that help you build the rest of the game. 3. The constructor should take the names of the players as arguments. 4. Hints: • The playOneGame method It should not take any arguments. Get it working correctly before starting the playManyGames. You will need to add one line of code to DiceGameProgram.py. When it's working correctly, you should get output similar to Figure 1: (a) below. • The playManyGames method It should take the number of games to play as an argument. This method should internally play the indicated number of games, keep track of how many games each player wins, and report the winner. You will need to write code that calls this method in DiceGameProgram.py. When it's working correctly, you should get output similar to Figure 1: (b) below. C. C:\WINDOWS\SY... Game one: Matt rolled 7 Ashley rolled 7 Tie Game two: Dexter rolled 5 Eugene rolled 2 Dexter wins! (program exited with code: 0) Press any key to continue (a) playOneGame X | 0:4. C:\WINDOWS\SY... The score is 6 to 3 Dexter wins! (program exited with code: 0) Press any key to continue . . (b) playManyGames ||
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY