TicTacToe/tictactoe/TicTacToeViewModel.cs
2023-03-13 13:59:49 +01:00

27 lines
552 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;
namespace TicTacToe
{
partial class TicTacToeViewModel : ObservableObject
{
[ObservableProperty]
char[][] grid = new char[][] {
new char[] { ' ', ' ', ' ' },
new char[] { ' ', ' ', ' ' },
new char[] { ' ', ' ', ' ' },
};
char currentTurn = 'O';
public TicTacToeViewModel()
{
}
}
}