C#:
if(player == "X")
{
btn1.Content = "X";
player = "O";
}
else
{
btn1.Content = "O";
player = "X";
}
Is there a possibility to just change the 1 from btn1 into a 2? Because i need 9 buttons all doing the same. I would like to creat a method using this code but changing the number infront of the .Content
im open for solutions