Hey guys Iam in a bit of a pickle. My deadline is near and i have taken on too hard a project atm. I have got this minesweeper program i have started its not pretty bu it will do. I have basically got the menu system working and got the grid with the mines appearing but the mines are also appearing as i do not know how to cout a blank grid of stars. i have tryed for hours to get the program to cin values and check against the grid then reveal squares around it but i just cant do it. Please can anyone help me iam desperate for help.
//**********************Play_gameSubroutine******************//
void Play_game()
{
system ("CLS");
int minegrid [9][9] = {0};// grid to check values against
int minecount = 0;
int xnum;
int ynum;
int i;
int j;
int gridx;
int gridy;
//Randomseed//
srand(time(NULL));
//** Used to put mines into the real grid **//
do
{
xnum = rand () % 9 + 1;
ynum = rand () % 9 + 1;
cout <<"How to play:" << endl;
cout << endl;
cout <<"Manic Mines is a game about finding mines in the game board." << endl;
cout << endl;
cout <<"Type in the co-ordinates of the square you wish to manipulate." << endl;
cout << endl;
cout <<"If you hit a mine then the game will end." << endl;
cout << endl;
cout <<"There will be 9 mines in the grid to find." << endl;
cout << endl;
cout <<"Be careful you can detonate a mine on your first turn." << endl;
cout << endl;
cout <<"When you select a square and it is not a mine," << endl;
cout << endl;
cout <<"Then the areas around it will be uncovered." << endl;
cout << endl;
cout <<"Your highscore will be based on time completed." << endl;
cout << endl;
cout <<"A score will not be saved if you fail to clear the board." << endl;
cout << endl;
cout <<"Good Luck!!!" << endl;
cout << endl;
cout <<"Happy Manic Mining..." << endl;
cout << endl;
system("PAUSE");
}