diff --git a/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs b/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs index 46142a5..48a6800 100644 --- a/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs +++ b/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs @@ -47,20 +47,21 @@ namespace MiniGames.Shared.Models { int x = pos / 3; int y = pos % 3; - + try { - if (Felder[x, y] != LEER) - return false; + if (Felder[x, y] == LEER) + { + Felder[x, y] = wert; + return true; + } } catch (IndexOutOfRangeException e) { - return false; + // absichtlich leer } - Felder[x, y] = wert; - - return true; + return false; } public bool Voll()