27 lines
552 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|