Question: Develop a simple game application without using the data type dictionary. Allow any number of players to play MasterMind together. For the game design and

Develop a simple game application without using the data type dictionary. Allow
any number of players to play MasterMind together.
For the game design and implementation, you must adhere to the following constraints:(Showed on your page 1)
Page 2 - Showed after been program and run shows the required output
(a) Demonstrate how you implement top-down design to the problem, showing at least 3 levels of refinement. Show also the final set of functions derived from your top-down design in a structure chart.
(b) Implement your solution based on your structure chart in part Q3(a) and specify the order in which you test your functions
(Using python Language)
 Develop a simple game application without using the data type dictionary.
Allow any number of players to play MasterMind together. For the game
1st page
design and implementation, you must adhere to the following constraints:(Showed on your
page 1) Page 2 - Showed after been program and run shows
2nd page

Develop a simple game application without using the data type dictionary. Allow any number of players to play MasterMind together For the game design and implementation, you must adhere to the following constraints: Game Play Start the application by asking the user how many players will be playing MasterMind and the names of the players. Before each new game commences, the application randomly generates a hidden code. To generate the hidden code, the application makes 4 random choices to pick 4 different colors from 6 colors (stored as a string "RGBYOP"). The letters represent the 6 distinct colors: Red, Green, Blue, Yellow Orange and Purple. The random choices are stored as a single string e.g "YBRP" Players take turns to make a guess, the order follows the order the names are entered. When it is a player's turn, he guesses the colors and positions of the hidden code. The guess is read as a string and consists of 4 letters e.g... "BORY". The result of his guess is displayed before the next player takes his turn. Show both the before and after score of a player after his guess is checked. The next player then takes his turn, each guess is checked and the score updated, until the game ends when the hidden code is broken, that is, a player gets 4 black pins. At the end of each game, print out the details of the players and list the winner(s). The output should be shown on both screen and file. The players can repeatedly decide whether to play another game of MasterMind. If the players decide to stop play, print out the players with the most number of games won. The output should be shown on both screen and file. ion of scores and winners: Each right color in the wrong position earns the player a white pin which is worth 1 point, and each right color in the right position earns the player a black pin or 5 points. In this example, the guess earns 2 white pins and 1 black pin, and the program displays wWB, subjected to this consideration: Only additional pins a player gets will earn him points. Only additional pins a player gets will earn him points. For example, assume that throughout game play thus far, the best performance for white pins is 2 and the best performance for black pins is 0. If now, a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!