Good evening.
My programming teacher asked a bare bones version of mine-sweeper. We are using text mode, not graphic. The problem is we have to draw the board (with ascii art, obviously I'll use +, - and |, every position refers to a corresponding value of a multidimensional array), read a position from the player and put an appropriate character on the specified location, i.e. the player enters C5 and, in the corresponding cell, I have to put a X if there is a mine, a point if there are no mines in the cells around or a number which means how many mines are around the position. I don't need to expand the selected cell automatically, as the original game do, I only have to write in the selected position. How can I write in a specified position after drawing the board? I mean, (i.e.) F4 is on the 20th column and the 13th row, how can I say cout << "X" << 20th, 13th; or cout << "3" << 20th, 13th;? Obviously, after writing the character, I have to put back the prompt on the position where the player has to insert the new attempt to read again with cin, but the solution is the same as before.
Thank you very much for your help. Alex