diff --git a/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs b/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs index f5d72e5..d19f6e2 100644 --- a/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs +++ b/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs @@ -59,6 +59,14 @@ namespace MiniGames.Shared.Models return true; } + public int Get(int pos) + { + int x = pos % 3; + int y = pos / 3; + + return Felder[x, y]; + } + public bool Set(int pos, int wert) { int x = pos % 3;