Browse Source

TicTacToeBrett.Get hinzugefügt

feature/tictactoe
Felix Detig 3 years ago
parent
commit
be465ca87f
  1. 8
      BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs

8
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;

Loading…
Cancel
Save