Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
tuer[x][y] = tuer[x][y] - 1;
public Haus getPosition(int y, int x)
{
if(tuer[x]-1 > 0) //Wert 0 anpassen
{
tuer[x] -= 1;
}
if(tuer[x][y]-1 > 0) //Wert 0 anpassen
{
tuer[x][y] -= 1;
}
return tuer[x][y];
}
Ok.. gut..
habe nicht gewusst das es so viel braucht um eine 1 von einem 2D Array abzuzählen.