will you post the errors and the code too?? it would make things way easier and we might even find more errors or bad practices.
i see two errors here :
i can't see an expression here nor a statement that would yield a TRUE\FALSE (aka : 1\0) result. (someone correct me if im wrong)
the other one :
Code:
else{
display(); /* display grid */
printf("Well done You now have 10 points Try again\n");
printf("\n");
}
you forgot to add braces here(shown in red) to tell the compiler that those three lines of code are for that "else".
and btw... you can use two new lines characters '\n' in one 'printf()' as :
Code:
printf("Well done You now have 10 points Try again\n\n");
no need to use another 'printf()' to print a new line only.
and for exiting the program , you could use a 'return' this way :
Code:
if(grid[x][y]){ /* if mine */
printf("Sorry You Hit a Mine Game Over\n"); /*Text Displayed*/
return 0;
}
and again...you need the braces..
hope this helped..