Completed

This commit is contained in:
maxwes08
2025-10-20 10:00:51 +02:00
parent 3fe7224aaf
commit cc5b6125bb
7 changed files with 129 additions and 50 deletions

15
Box.cs
View File

@@ -1,15 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace TicTacToe
namespace TicTacToe
{
public class Box
{
public Action<int> Pressed;
public Action<int>? Pressed;
public int Index;
public bool BotOwned = false;
private Button _button;
@@ -23,9 +16,9 @@ namespace TicTacToe
_button.Text = "";
}
private void Clicked(object sender, EventArgs e)
private void Clicked(object? sender, EventArgs e)
{
Pressed.Invoke(Index);
Pressed?.Invoke(Index);
}
public void Destroy()