Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 26, 2022 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/188d2d567f513bf10faf99ea76cc6d18 to your computer and use it in GitHub Desktop.
Save parzibyte/188d2d567f513bf10faf99ea76cc6d18 to your computer and use it in GitHub Desktop.
/*
Regresa false si había una mina. true en caso contrario
*/
bool descubrir(int x, int y)
{
this->contenido.at(y).at(x).setDescubierta(true);
Celda celda = this->contenido.at(y).at(x);
if (celda.tieneMina())
{
return false;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment