src/MapGenerator/MapOperation.cpp
/**
 * This is default method to generate size of Minefield.
 * There are three level of difficulty.
 *
 * @param level
 * EASY: 9 * 9 with 10 mines
 * NORMAL: 16 * 16 with 40 mines
 * HARD: 16 * 30 with 99 mines
*/
This is default method to generate size of Minefield.
There are three level of difficulty.

@param level
EASY: 9 * 9 with 10 mines
NORMAL: 16 * 16 with 40 mines
HARD: 16 * 30 with 99 mines
This is default method to generate size of Minefield . There are three level of difficulty . @param level EASY : 9 * 9 with 10 mines NORMAL : 16 * 16 with 40 mines HARD : 16 * 30 with 99 mines
MapGenerator::MField::MField(LEVEL level) {
    if (level == EASY) {
        this->row = this->line = 9;
        this->numberOfMines = 10;
    } else if (level == NORMAL) {
        this->row = this->line = 16;
        this->numberOfMines = 40;
    } else if (level == HARD) {
        this->row = 16;
        this->line = 30;
        this->numberOfMines = 99;
    } else {
        exit(1);
    }
    this->resetMap();
    generateMine(this);
}
MapGenerator :: MField :: MField ( LEVEL level ) { if ( level == EASY ) { this -> row = this -> line = 9 ; this -> numberOfMines = 10 ; } else if ( level == NORMAL ) { this -> row = this -> line = 16 ; this -> numberOfMines = 40 ; } else if ( level == HARD ) { this -> row = 16 ; this -> line = 30 ; this -> numberOfMines = 99 ; } else { exit ( 1 ) ; } this -> resetMap ( ) ; generateMine ( this ) ; }
This is default method to generate size of Minefield.
This is default method to generate size of Minefield .