Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi i need help please!!! Info 1521 Programming! Final Preet Assicament Final Project, Points: 200 Overview We are going to do a clone of the

Hi i need help please!!! image text in transcribed
Info 1521 Programming! Final Preet Assicament Final Project, Points: 200 Overview We are going to do a clone of the Minesweeper Game Requirements Minesweeper is a two dimensional grid that has mines hidden randomly throughout the game space. The players cell in the grid. If the cells a mine in it the mine goes off and the game is ever. If the cell does not have a mine in it the game will reveal of the adjacent blank coll. If any of the cells have mines adjacent to the thesauber is placed in that cell that indicates how many mines are adjacent. Once all the blank cells and cells with numbers have been revealed the player la plven the opportunity to go at another cell. Once all of the mine cells have been realed the player im Our game will have ten (10) cells with mines in it. The initial Billing of the old will be done with a random generator to determine the location of the cells with mine The game will ask the player for a light and with no create the minden For this time we will use there the main mewer wassins The mine per class will have the main think will created and all the start method out of the game object The game class will have the following methods voldstar This method will be the starting point of the game will need to the were input the height and with of the gril initialize the grid using the height and with and all the sameloop void gameLoop This method will be the main loep that runs the game. This method will ask the wser to input the cell that they want to check and will call the chicktion method assing the cold location that the ser just inserted int numberones introw, int col). This method will count the number of mines that are adjacent to the cell that is at the location given by the row and col value to it boolean check location in row, int col) This method will then by the row and col value has a mine. If it does not then it will call the close method iving the current location void clearBlankstintrow, Into): This method will to the cell the adjacent to the cell at the location given by the row and col value. If one of the weshanamine adjacent so it then a number will be put in the cella location that comes to the number of mines that are adjacent. If one of the adjacent celle does not have my mire do it, then that cell will be McCune Page 1 of 4 Info 18 Programmie! West Assignat turned into a blank and the cells around it will be revealed and checked for mines. This process will continue until the only cells left all have numbers indicating the unter af mines The grid class will have a constructor that takes two parameters, height and a width. It will also have the following methods randomFil/Gridy: This method will randomly place mines in the grid display GridO: This method will display the grid with the hidden and revealed cells. displayGridDatac This method will display the grid with the lotions of the mines revealed The previous list of methods is a minimum requirement. You can have more methods than these. However, these methods must appear and be used in your project There are some sample screenshots in a following section Sereen Shots These screen shots are examples of what your application should look runt Enter the height of the grid: in Info 1521 Programming! Final Preet Assicament Final Project, Points: 200 Overview We are going to do a clone of the Minesweeper Game Requirements Minesweeper is a two dimensional grid that has mines hidden randomly throughout the game space. The players cell in the grid. If the cells a mine in it the mine goes off and the game is ever. If the cell does not have a mine in it the game will reveal of the adjacent blank coll. If any of the cells have mines adjacent to the thesauber is placed in that cell that indicates how many mines are adjacent. Once all the blank cells and cells with numbers have been revealed the player la plven the opportunity to go at another cell. Once all of the mine cells have been realed the player im Our game will have ten (10) cells with mines in it. The initial Billing of the old will be done with a random generator to determine the location of the cells with mine The game will ask the player for a light and with no create the minden For this time we will use there the main mewer wassins The mine per class will have the main think will created and all the start method out of the game object The game class will have the following methods voldstar This method will be the starting point of the game will need to the were input the height and with of the gril initialize the grid using the height and with and all the sameloop void gameLoop This method will be the main loep that runs the game. This method will ask the wser to input the cell that they want to check and will call the chicktion method assing the cold location that the ser just inserted int numberones introw, int col). This method will count the number of mines that are adjacent to the cell that is at the location given by the row and col value to it boolean check location in row, int col) This method will then by the row and col value has a mine. If it does not then it will call the close method iving the current location void clearBlankstintrow, Into): This method will to the cell the adjacent to the cell at the location given by the row and col value. If one of the weshanamine adjacent so it then a number will be put in the cella location that comes to the number of mines that are adjacent. If one of the adjacent celle does not have my mire do it, then that cell will be McCune Page 1 of 4 Info 18 Programmie! West Assignat turned into a blank and the cells around it will be revealed and checked for mines. This process will continue until the only cells left all have numbers indicating the unter af mines The grid class will have a constructor that takes two parameters, height and a width. It will also have the following methods randomFil/Gridy: This method will randomly place mines in the grid display GridO: This method will display the grid with the hidden and revealed cells. displayGridDatac This method will display the grid with the lotions of the mines revealed The previous list of methods is a minimum requirement. You can have more methods than these. However, these methods must appear and be used in your project There are some sample screenshots in a following section Sereen Shots These screen shots are examples of what your application should look runt Enter the height of the grid: in

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions