Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //mod = dif/10; //unneeded
- bombs = size*size*dif/10;
- while (bombs > 0) {
- int j = rand() %size +1;
- int k = rand() %size +1;
- if(actualGrid[j][k] == 0){
- actualGrid[j][k] = 1;
- bombs--;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment