me and a friend have been trying to find a solution to this for the past day and still have got no where
Thats the code.Code:if(grid[x][y]) /* if mine */ printf("Sorry You Hit a Mine Game Over\n"); /*Text Displayed*/ else display(); /* display grid */ printf("Well done You now have 10 points Try again\n"); printf("\n");
Basically i'm looking for the code or help with the code so that the program will end if you hit a mine. I've tried exit and end if but the program won't compile. Just wondering if anyone can help.
We just need to it to end if it hits a mine or continue if it does not.