/* Rafay Ahmad 23I-2526 */ #include using namespace std; class Minesweeper{ char** grid; int* mineLocations; int size; int mines; int opened; public: Minesweeper(int size, int mines) : size(size), mines(mines), opened(0){ srand(time(0)); grid = new char*[size]; for(int i=0;i>size; cout<<"Enter no Of mines: "; cin>>mines; Minesweeper game(size, mines); while(game.checkWin()){ game.displayGrid(); cout<<"Enter row: "; cin>>row; cout<<"Enter col: "; cin>>col; cout<<"Enter F to flag or R to reveal: "; cin>>c; } return 0; }