Develop an object-oriented Python Pig(dice game) using test-driven development process. The Pig(dice game) should be played by one player towards the computer and as a two player game. You application should be divided into classes where each class resides in its own file. Some suggestions of classes are Game, Dice, DiceHand, Histogram, Intelligence, HighScore, Player - Each player should be able to select a name for them self and a player should be able to change their name. - There should be a persistent high score list where statistics on each player and their played games, are stored and visible. The statistics should remain if the player changes their name. - One should be able to see the rules of the game. - One should be able to play a whole game round. One should be able to quit the current game and restart it. - There should be a cheat which one can use for testing purpose and reach the end of the game faster. This cheat should contain a information text some one knows how to use it. - The game should have a nice graphical representation so it looks like fun to play it. - When the computer is playing, it should have some type of intelligence(like: Beginner, Normal, Hard) for playing the game. There should be several settings for the level of intelligence for the computer playing. These should be configurable by the user while playing. - The game should be resilient and continue to work if/when the user enters bad input. - Try hard to make small enough methods. - Your code shall be covered by unit tests. The unit tests shall be stored in one file per class. Each class should have a complete set of unit tests. If there are modules and functions then these should also be covered by unit tests and these should be stored in their own files so it is obvious which unit tests belong to a certain class or module.

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

Develop an object-oriented Python Pig(dice game) using test-driven development process. The Pig(dice game) should be played by one player towards the computer and as a two player game.

You application should be divided into classes where each class resides in its own file. Some suggestions of classes are Game, Dice, DiceHand, Histogram, Intelligence, HighScore, Player

- Each player should be able to select a name for them self and a player should be able to change their name.

- There should be a persistent high score list where statistics on each player and their played games, are stored and visible. The statistics should remain if the player changes their name.

- One should be able to see the rules of the game.

- One should be able to play a whole game round. One should be able to quit the current game and restart it.

- There should be a cheat which one can use for testing purpose and reach the end of the game faster. This cheat should contain a information text some one knows how to use it.

- The game should have a nice graphical representation so it looks like fun to play it.

- When the computer is playing, it should have some type of intelligence(like: Beginner, Normal, Hard) for playing the game. There should be several settings for the level of intelligence for the computer playing. These should be configurable by the user while playing.

- The game should be resilient and continue to work if/when the user enters bad input.

- Try hard to make small enough methods.

- Your code shall be covered by unit tests. The unit tests shall be stored in one file per class. Each class should have a complete set of unit tests.

If there are modules and functions then these should also be covered by unit tests and these should be stored in their own files so it is obvious which unit tests belong to a certain class or module.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
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