|
@ -50,17 +50,18 @@ namespace MiniGames.Shared.Models |
|
|
|
|
|
|
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
if (Felder[x, y] != LEER) |
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
if (Felder[x, y] == LEER) |
|
|
|
|
|
{ |
|
|
|
|
|
Felder[x, y] = wert; |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
catch (IndexOutOfRangeException e) |
|
|
catch (IndexOutOfRangeException e) |
|
|
{ |
|
|
{ |
|
|
return false; |
|
|
|
|
|
|
|
|
// absichtlich leer
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Felder[x, y] = wert; |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public bool Voll() |
|
|
public bool Voll() |
|
|