In this assignment, you are going to design and develop a GUI (Graphical User Interface) based...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this assignment, you are going to design and develop a GUI (Graphical User Interface) based color- flipping game in python. The game is composed of a rectangular board divided into a number of flat colored tiles of various colors as illustrated in the figure above. The goal of the game is to turn all tiles to the same color by choosing one tile on the board and then changing its color to another color. The newly selected color will spread to all its neighboring tiles which match the original color of the chosen tile. The player continues selecting another tile and changing its color to another until all the tiles within the board flipped to the same color. In addition to the rectangular board, an array of colors is shown below the game board. These are the colors to which the player can choose to flip the color of the selected tile, as shown below. As an illustration, the following figures show the results of flipping the color of the tile at the upper left corner and the sequence of colors chosen are: SCOPE Design the color-flipping game using the standard python module "turtle", including the following components: а. Board b. Flat-colored Tiles C. GUI (Mouse Click, Tile and Color Selection) When the game starts, it creates the rectangular board with a 5x5 array of colored tiles, each filled with a randomly chosen color from a fixed set of 5 different colors. You are free to choose your own set of colors, or use the ones from this example. The color set is displayed as a color bar under the game board as shown below. Chosen Tile Board Color Set During the game, the player uses the mouse to select one tile from the board and the player can also change to another tile by freely clicking another tile, the last selected tile will be framed with a border (black in this example), finally the player picks one color from the color set to begin flipping the color of the selected tiles, plus all its neighboring tiles matching the original color of the selected tile. The selected tile will be reset (border removed) as soon as the color- flipping logic begins. After the color-flipping logic is completed the player is then allowed to choose another tile and another color to flip. Choose a reasonable size for the tiles including the color bar, minimum 60x60 pixels. Set the width of the border to about 5 pixels Do not terminate your program when the player successfully flipped all tiles to one color. a. Simply keep your program up and running and let the player to choose different colors as desired. Coding Styles Ensure that your program follows the proper layout structure as discussed in class. b. You might declare global variables used for this assignment, ensure that a consistent naming convention is in place to differentiate various variable scopes. In this assignment, you are going to design and develop a GUI (Graphical User Interface) based color- flipping game in python. The game is composed of a rectangular board divided into a number of flat colored tiles of various colors as illustrated in the figure above. The goal of the game is to turn all tiles to the same color by choosing one tile on the board and then changing its color to another color. The newly selected color will spread to all its neighboring tiles which match the original color of the chosen tile. The player continues selecting another tile and changing its color to another until all the tiles within the board flipped to the same color. In addition to the rectangular board, an array of colors is shown below the game board. These are the colors to which the player can choose to flip the color of the selected tile, as shown below. As an illustration, the following figures show the results of flipping the color of the tile at the upper left corner and the sequence of colors chosen are: SCOPE Design the color-flipping game using the standard python module "turtle", including the following components: а. Board b. Flat-colored Tiles C. GUI (Mouse Click, Tile and Color Selection) When the game starts, it creates the rectangular board with a 5x5 array of colored tiles, each filled with a randomly chosen color from a fixed set of 5 different colors. You are free to choose your own set of colors, or use the ones from this example. The color set is displayed as a color bar under the game board as shown below. Chosen Tile Board Color Set During the game, the player uses the mouse to select one tile from the board and the player can also change to another tile by freely clicking another tile, the last selected tile will be framed with a border (black in this example), finally the player picks one color from the color set to begin flipping the color of the selected tiles, plus all its neighboring tiles matching the original color of the selected tile. The selected tile will be reset (border removed) as soon as the color- flipping logic begins. After the color-flipping logic is completed the player is then allowed to choose another tile and another color to flip. Choose a reasonable size for the tiles including the color bar, minimum 60x60 pixels. Set the width of the border to about 5 pixels Do not terminate your program when the player successfully flipped all tiles to one color. a. Simply keep your program up and running and let the player to choose different colors as desired. Coding Styles Ensure that your program follows the proper layout structure as discussed in class. b. You might declare global variables used for this assignment, ensure that a consistent naming convention is in place to differentiate various variable scopes. In this assignment, you are going to design and develop a GUI (Graphical User Interface) based color- flipping game in python. The game is composed of a rectangular board divided into a number of flat colored tiles of various colors as illustrated in the figure above. The goal of the game is to turn all tiles to the same color by choosing one tile on the board and then changing its color to another color. The newly selected color will spread to all its neighboring tiles which match the original color of the chosen tile. The player continues selecting another tile and changing its color to another until all the tiles within the board flipped to the same color. In addition to the rectangular board, an array of colors is shown below the game board. These are the colors to which the player can choose to flip the color of the selected tile, as shown below. As an illustration, the following figures show the results of flipping the color of the tile at the upper left corner and the sequence of colors chosen are: SCOPE Design the color-flipping game using the standard python module "turtle", including the following components: а. Board b. Flat-colored Tiles C. GUI (Mouse Click, Tile and Color Selection) When the game starts, it creates the rectangular board with a 5x5 array of colored tiles, each filled with a randomly chosen color from a fixed set of 5 different colors. You are free to choose your own set of colors, or use the ones from this example. The color set is displayed as a color bar under the game board as shown below. Chosen Tile Board Color Set During the game, the player uses the mouse to select one tile from the board and the player can also change to another tile by freely clicking another tile, the last selected tile will be framed with a border (black in this example), finally the player picks one color from the color set to begin flipping the color of the selected tiles, plus all its neighboring tiles matching the original color of the selected tile. The selected tile will be reset (border removed) as soon as the color- flipping logic begins. After the color-flipping logic is completed the player is then allowed to choose another tile and another color to flip. Choose a reasonable size for the tiles including the color bar, minimum 60x60 pixels. Set the width of the border to about 5 pixels Do not terminate your program when the player successfully flipped all tiles to one color. a. Simply keep your program up and running and let the player to choose different colors as desired. Coding Styles Ensure that your program follows the proper layout structure as discussed in class. b. You might declare global variables used for this assignment, ensure that a consistent naming convention is in place to differentiate various variable scopes. In this assignment, you are going to design and develop a GUI (Graphical User Interface) based color- flipping game in python. The game is composed of a rectangular board divided into a number of flat colored tiles of various colors as illustrated in the figure above. The goal of the game is to turn all tiles to the same color by choosing one tile on the board and then changing its color to another color. The newly selected color will spread to all its neighboring tiles which match the original color of the chosen tile. The player continues selecting another tile and changing its color to another until all the tiles within the board flipped to the same color. In addition to the rectangular board, an array of colors is shown below the game board. These are the colors to which the player can choose to flip the color of the selected tile, as shown below. As an illustration, the following figures show the results of flipping the color of the tile at the upper left corner and the sequence of colors chosen are: SCOPE Design the color-flipping game using the standard python module "turtle", including the following components: а. Board b. Flat-colored Tiles C. GUI (Mouse Click, Tile and Color Selection) When the game starts, it creates the rectangular board with a 5x5 array of colored tiles, each filled with a randomly chosen color from a fixed set of 5 different colors. You are free to choose your own set of colors, or use the ones from this example. The color set is displayed as a color bar under the game board as shown below. Chosen Tile Board Color Set During the game, the player uses the mouse to select one tile from the board and the player can also change to another tile by freely clicking another tile, the last selected tile will be framed with a border (black in this example), finally the player picks one color from the color set to begin flipping the color of the selected tiles, plus all its neighboring tiles matching the original color of the selected tile. The selected tile will be reset (border removed) as soon as the color- flipping logic begins. After the color-flipping logic is completed the player is then allowed to choose another tile and another color to flip. Choose a reasonable size for the tiles including the color bar, minimum 60x60 pixels. Set the width of the border to about 5 pixels Do not terminate your program when the player successfully flipped all tiles to one color. a. Simply keep your program up and running and let the player to choose different colors as desired. Coding Styles Ensure that your program follows the proper layout structure as discussed in class. b. You might declare global variables used for this assignment, ensure that a consistent naming convention is in place to differentiate various variable scopes. In this assignment, you are going to design and develop a GUI (Graphical User Interface) based color- flipping game in python. The game is composed of a rectangular board divided into a number of flat colored tiles of various colors as illustrated in the figure above. The goal of the game is to turn all tiles to the same color by choosing one tile on the board and then changing its color to another color. The newly selected color will spread to all its neighboring tiles which match the original color of the chosen tile. The player continues selecting another tile and changing its color to another until all the tiles within the board flipped to the same color. In addition to the rectangular board, an array of colors is shown below the game board. These are the colors to which the player can choose to flip the color of the selected tile, as shown below. As an illustration, the following figures show the results of flipping the color of the tile at the upper left corner and the sequence of colors chosen are: SCOPE Design the color-flipping game using the standard python module "turtle", including the following components: а. Board b. Flat-colored Tiles C. GUI (Mouse Click, Tile and Color Selection) When the game starts, it creates the rectangular board with a 5x5 array of colored tiles, each filled with a randomly chosen color from a fixed set of 5 different colors. You are free to choose your own set of colors, or use the ones from this example. The color set is displayed as a color bar under the game board as shown below. Chosen Tile Board Color Set During the game, the player uses the mouse to select one tile from the board and the player can also change to another tile by freely clicking another tile, the last selected tile will be framed with a border (black in this example), finally the player picks one color from the color set to begin flipping the color of the selected tiles, plus all its neighboring tiles matching the original color of the selected tile. The selected tile will be reset (border removed) as soon as the color- flipping logic begins. After the color-flipping logic is completed the player is then allowed to choose another tile and another color to flip. Choose a reasonable size for the tiles including the color bar, minimum 60x60 pixels. Set the width of the border to about 5 pixels Do not terminate your program when the player successfully flipped all tiles to one color. a. Simply keep your program up and running and let the player to choose different colors as desired. Coding Styles Ensure that your program follows the proper layout structure as discussed in class. b. You might declare global variables used for this assignment, ensure that a consistent naming convention is in place to differentiate various variable scopes. In this assignment, you are going to design and develop a GUI (Graphical User Interface) based color- flipping game in python. The game is composed of a rectangular board divided into a number of flat colored tiles of various colors as illustrated in the figure above. The goal of the game is to turn all tiles to the same color by choosing one tile on the board and then changing its color to another color. The newly selected color will spread to all its neighboring tiles which match the original color of the chosen tile. The player continues selecting another tile and changing its color to another until all the tiles within the board flipped to the same color. In addition to the rectangular board, an array of colors is shown below the game board. These are the colors to which the player can choose to flip the color of the selected tile, as shown below. As an illustration, the following figures show the results of flipping the color of the tile at the upper left corner and the sequence of colors chosen are: SCOPE Design the color-flipping game using the standard python module "turtle", including the following components: а. Board b. Flat-colored Tiles C. GUI (Mouse Click, Tile and Color Selection) When the game starts, it creates the rectangular board with a 5x5 array of colored tiles, each filled with a randomly chosen color from a fixed set of 5 different colors. You are free to choose your own set of colors, or use the ones from this example. The color set is displayed as a color bar under the game board as shown below. Chosen Tile Board Color Set During the game, the player uses the mouse to select one tile from the board and the player can also change to another tile by freely clicking another tile, the last selected tile will be framed with a border (black in this example), finally the player picks one color from the color set to begin flipping the color of the selected tiles, plus all its neighboring tiles matching the original color of the selected tile. The selected tile will be reset (border removed) as soon as the color- flipping logic begins. After the color-flipping logic is completed the player is then allowed to choose another tile and another color to flip. Choose a reasonable size for the tiles including the color bar, minimum 60x60 pixels. Set the width of the border to about 5 pixels Do not terminate your program when the player successfully flipped all tiles to one color. a. Simply keep your program up and running and let the player to choose different colors as desired. Coding Styles Ensure that your program follows the proper layout structure as discussed in class. b. You might declare global variables used for this assignment, ensure that a consistent naming convention is in place to differentiate various variable scopes. In this assignment, you are going to design and develop a GUI (Graphical User Interface) based color- flipping game in python. The game is composed of a rectangular board divided into a number of flat colored tiles of various colors as illustrated in the figure above. The goal of the game is to turn all tiles to the same color by choosing one tile on the board and then changing its color to another color. The newly selected color will spread to all its neighboring tiles which match the original color of the chosen tile. The player continues selecting another tile and changing its color to another until all the tiles within the board flipped to the same color. In addition to the rectangular board, an array of colors is shown below the game board. These are the colors to which the player can choose to flip the color of the selected tile, as shown below. As an illustration, the following figures show the results of flipping the color of the tile at the upper left corner and the sequence of colors chosen are: SCOPE Design the color-flipping game using the standard python module "turtle", including the following components: а. Board b. Flat-colored Tiles C. GUI (Mouse Click, Tile and Color Selection) When the game starts, it creates the rectangular board with a 5x5 array of colored tiles, each filled with a randomly chosen color from a fixed set of 5 different colors. You are free to choose your own set of colors, or use the ones from this example. The color set is displayed as a color bar under the game board as shown below. Chosen Tile Board Color Set During the game, the player uses the mouse to select one tile from the board and the player can also change to another tile by freely clicking another tile, the last selected tile will be framed with a border (black in this example), finally the player picks one color from the color set to begin flipping the color of the selected tiles, plus all its neighboring tiles matching the original color of the selected tile. The selected tile will be reset (border removed) as soon as the color- flipping logic begins. After the color-flipping logic is completed the player is then allowed to choose another tile and another color to flip. Choose a reasonable size for the tiles including the color bar, minimum 60x60 pixels. Set the width of the border to about 5 pixels Do not terminate your program when the player successfully flipped all tiles to one color. a. Simply keep your program up and running and let the player to choose different colors as desired. Coding Styles Ensure that your program follows the proper layout structure as discussed in class. b. You might declare global variables used for this assignment, ensure that a consistent naming convention is in place to differentiate various variable scopes. In this assignment, you are going to design and develop a GUI (Graphical User Interface) based color- flipping game in python. The game is composed of a rectangular board divided into a number of flat colored tiles of various colors as illustrated in the figure above. The goal of the game is to turn all tiles to the same color by choosing one tile on the board and then changing its color to another color. The newly selected color will spread to all its neighboring tiles which match the original color of the chosen tile. The player continues selecting another tile and changing its color to another until all the tiles within the board flipped to the same color. In addition to the rectangular board, an array of colors is shown below the game board. These are the colors to which the player can choose to flip the color of the selected tile, as shown below. As an illustration, the following figures show the results of flipping the color of the tile at the upper left corner and the sequence of colors chosen are: SCOPE Design the color-flipping game using the standard python module "turtle", including the following components: а. Board b. Flat-colored Tiles C. GUI (Mouse Click, Tile and Color Selection) When the game starts, it creates the rectangular board with a 5x5 array of colored tiles, each filled with a randomly chosen color from a fixed set of 5 different colors. You are free to choose your own set of colors, or use the ones from this example. The color set is displayed as a color bar under the game board as shown below. Chosen Tile Board Color Set During the game, the player uses the mouse to select one tile from the board and the player can also change to another tile by freely clicking another tile, the last selected tile will be framed with a border (black in this example), finally the player picks one color from the color set to begin flipping the color of the selected tiles, plus all its neighboring tiles matching the original color of the selected tile. The selected tile will be reset (border removed) as soon as the color- flipping logic begins. After the color-flipping logic is completed the player is then allowed to choose another tile and another color to flip. Choose a reasonable size for the tiles including the color bar, minimum 60x60 pixels. Set the width of the border to about 5 pixels Do not terminate your program when the player successfully flipped all tiles to one color. a. Simply keep your program up and running and let the player to choose different colors as desired. Coding Styles Ensure that your program follows the proper layout structure as discussed in class. b. You might declare global variables used for this assignment, ensure that a consistent naming convention is in place to differentiate various variable scopes.
Expert Answer:
Answer rating: 100% (QA)
and finaly the output will look like this In here I have some functions like delete to delete all th... View the full answer
Related Book For
Principles of Information Systems
ISBN: 978-1133629665
11th edition
Authors: Ralph Stair, George Reynolds
Posted Date:
Students also viewed these programming questions
-
In this assignment, you are going to design and implement an interactive zoo records database. This will be an object-oriented program that processes a file of zoo animal data and interactively...
-
You are going to design a database for your schools outdoors club to track its activities. Would cloud computing be a useful strategy to set up the database? Describe your reasoning. If not, what...
-
You are going to design a database for your cooking club to track its recipes. Identify the database characteristics most important to you in choosing a DBMS. Which of the database management systems...
-
Prove that, the area of the traverse is equal to the algebraic sum of the products of the total latitude of each point and algebraic sum of the departures of the lines meeting at that point.
-
Consider the following four bonds: a. If the market yield is 7 percent, what are the values of the three first bonds (assume a face value of $1,000)? b. Why are the values of the bonds lower than...
-
"Pro forma statements are those statements prepared in conjunction with continuous budgets." Do you agree? Explain.
-
Cumulative Poisson probabilities can be calculated using MINITAB. Output: Poisson with mean \(=1.64\) Find the cumulative Poisson probabilities for \(x=2\) and \(x=3\) when (a) \(\lambda=2.73\); (b)...
-
Use the data in VOLAT.RAW for this exercise. (i) Confirm that Isp500 = log(sp500) and lip = log(ip) appear to contain unit roots. Use Dickey-Fuller tests with four lagged changes and do the tests...
-
Mega Corp., a semiweekly depositor, incurs a deposit liability on Wednesday, March 3 1 , of $ 9 9 , 0 0 0 . On Thursday, April 1 , it incurs an additional liability of $ 5 , 0 0 0 . When are these...
-
Prove that Then show that the regions under the hyperbola over the intervals [1, 2], [2, 4], [4, 8], . . . all have the same area (Figure 3). bla 1 1 L = = dx = fi = = dx te - Ja x X dx for a, b 0.
-
A life insurance company issues 20-year critical illness term assurance policies. The benefits, payable during the policy term, are a lump sum of 50,000 payable immediately on diagnosis of a critical...
-
Outline the general strategy used in metagenomics.
-
The codon change (Gly-12 to Val-12) in human H-ras that converts it to oncogenic H-ras has been associated with many types of cancers. For this reason, researchers would like to develop drugs to...
-
Many researchers are interested in the transcription of protein-encoding genes in eukaryotes. Such researchers want to study mRNA. One method that is used to isolate mRNA is column chromatography....
-
What would happen to the SML graph in Figure 8.8 if expected inflation increased or decreased? Figure 8.8 268 269 270 271 272 273 274 275 A Required Rate of Return TH-13.0% SML: r, RF+RPM * b D E F H...
-
Political expectations, inflation, and unemployment Consider a country with two political parties, Democrats and Republicans. Democrats care more about unemployment than Republicans, and Republicans...
-
Explain two general approaches to handle critical sections in operating systems. Explain the concept of a CPU-I/O burst cycle What role does the dispatcher play in CPU scheduling
-
Draw two scatterplots, one for which r = 1 and a second for which r = 21.
-
What is m-commerce? Describe how it can be used.
-
1. Suppose Grain Hill wanted to evaluate ERP offerings from SAP, Oracle, and others on its own, without the help of TEC or another advisor. List the steps it should follow. 2. An in-depth evaluation...
-
Describe how a company could use a blog and podcasting.
-
A bank offers customers the option of receiving interest compounded quarterly, semi-annually, or annually. If the rate of interest is the same, which is the best option for the customer?
-
The director of marketing of your organization asks for your advice regarding sponsorship deals she is contemplating. She has to choose from the following: a 15-year sponsorship paying \($100,000\)...
-
An athlete signs a five-year endorsement deal with a prominent sponsor. Under this deal the athlete will receive \($5,000\) each year for the first three years and \($6,500\) each year for the final...
Study smarter with the SolutionInn App