Question: PYTHON QNS. I need help with this python qns, would appreciate if someone can help me solve it. *WITHOUT DICTIONARY TYPE* Question 3 Develop a

PYTHON QNS. I need help with this python qns, would appreciate if someone can help me solve it.

*WITHOUT DICTIONARY TYPE*

PYTHON QNS. I need help with this python qns, would appreciate if

someone can help me solve it. *WITHOUT DICTIONARY TYPE* Question 3 Developa simple game application without using the data type dictionary. Allovw any

Question 3 Develop a simple game application without using the data type dictionary. Allovw any number of players to play MasterMind together For the game design and implementation, you must adhere to the following constraints 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

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!