#include "board.h" //Constructor that creates the board of the game for a size Board::Board(int Nbombs, int rows, int cols){ this->rows=rows; this->cols=cols; this->Nbombs=Nbombs; for(int j=0;j(cols)); for(int k=0;k > board){ rows = board.size(); cols = board.at(0).size(); this->gameBoard = board; int sum = 0; //Calculate how many bombs the board has for(int i=0; i= 0) && (y < cols) && (y >= 0)); } //Return the vector of the board QVector< QVector > Board::getBoard(){ return gameBoard; } //Return the number of bombs of a position x,y int Board::getNumberOfBombs(int x,int y){ return gameBoard[x][y]; } int Board::getNbombs() const{ return Nbombs; } //Return the board with data encrypted QVector > Board::getEncryption(){ QVector< QVector > encrypt(gameBoard.size(), QVector(gameBoard.at(0).size())); for(int i=0; i > Board::getDecryption(QVector< QVector > board){ QVector< QVector > decrypt(board.size(), QVector(board.at(0).size())); for(int i=0; i