Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 26, 2022 16:55
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/f2db130962e0ee632e9ad58aface53fb to your computer and use it in GitHub Desktop.
Save parzibyte/f2db130962e0ee632e9ad58aface53fb to your computer and use it in GitHub Desktop.
Tablero(int altura, int anchura, bool modoProgramador)
{
this->altura = altura;
this->anchura = anchura;
this->modoProgramador = modoProgramador;
int x, y;
for (y = 0; y < this->altura; y++)
{
vector<Celda> fila;
for (x = 0; x < this->anchura; x++)
{
fila.push_back((Celda(x, y, false)));
}
this->contenido.push_back(fila);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment