This is the teacher's requirements. I am in an intro to
Java class and this should be in an advanced class.
I just don't understand how to actually get my program running :( To make matters worse, I'm learning this online. Any directions or suggestions are greatly appreciated!
Program Description:
Create the first part of your MineSweep Game for Java. You will create the following parts for your game. You will write all your code in main:
Game Description - this will describe how to play the game.
Display Board - this will show the "mine field" (mines are hidden from player's view)
Get Input - this method will read in a player's move
PSUEDO CODE:
//main method
// declare the board array [9][9]
// initialize the array with a special character using two for loops
// write the code to Describe the Game - wait for user to hit enter
// clear the screen
// write the code to Display the Board - use two for loops
// write the code to get the row and column from the user - after user enters column clear the screen
// change the row and column of that element in the array
// Display the Board Again (copy code used to Display Board from above)
See sample output.
At this point your game has no real functionality.
Program Constraints:
All code must be written in main. (10 pts)
You must use a 2D Array and initialize it using two for loops ( one for loop embedded in another). (20 pts)
When you display the board you must have row and column headings (see sample output).(10 pts)
The game description will give a description of how the game is to be played (15 pts).
When you read in the row and column of the players move make sure that you Do Not allow erroneous values. (15 pts)
Use proper spelling and formatting for game (must look professional) (20 pts).
Make sure you clear the screen as indicated in the psuedo code. (10pts)