TicTacToe/tictactoe/TicTacToeViewModel.cs

27 lines
552 B
C#
Raw Normal View History

2023-03-13 12:59:49 +00:00
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()
{
}
}
}