simple project..

ei i have a project but i dont know wat to do..
could sum1 help me in my project..
my teacher ask me to create a simple minesweeper game with 5 columns and 5 rows with only 10 bombs..d sample output looks like dis

?????
1???1
?????
2????
???3?

can anyone help me in my project..
sori im very poor in programming..:(
Last edited on
have you started it already?
Try your best at coding it, then show us what you've got so far. We'll help you go from there.
i got codes from my teacher..
dis will only count the surrounding bombs

do
{
int row, col;
cin>>row;
cin>>col;
for( int r=row-2; r<=row;r++)
{
for(int c=col-2; c<=col; c++)
{
if (sweeper[r][c] == ' x ' )
bomb++;
}
}
bombcount [row-1][col-1] = bomb;

------------display if game over-------------------------------
if(sweeper[row-1][col-1] == ' x ')
cout<<"GAME OVER";
exit do;
blackcoder i already started yesterday but i got lots of errors and garbage..

and i dont have idea on how to code it..

please help me..dis project costs 150pts.. T.T
dis problem dont nid to flag..it only tell if the user hits the bomb or not den display the surrounding bombs..den continue asking till it didnt hits a bomb or get 15 spots with no bomb..if the user hits the bomb it will terminate the program..

i have no idea at all..im very confused..:(
Do you know java? I have coded it before with Java and the syntax is pretty much the same with c++. I could give it to you if you want to.
i knew a lil bit about java..but ill try to..can u give it to me?
yes I'll give it to you. what's your email?
just post the codes here..im not used to check my email..:)
Don't give it to him... he needs to figure it out. If he's given the answers he'll keep coming back.
Last time I checked these forums were to pose questions for awnsers that help you to find the sollution YOURSELF, not to just get the awnsers and hand them in...
So return0 is right, don't give the awnsers, or just give it in a way to complicated code, so that the teacher knows its not his when he hands it in..
Topic archived. No new replies allowed.