public static variable not changing

Bbialasik__10/29/2022
if (choice == 'H' && coinFlip == 1 ||
choice == 'T' && coinFlip == 2)
{
playerPawn = 'O'; // one instance where i want to change this variable
PlayerTurn();
ValuesCheck();
}
else
{
playerPawn = 'X';
ComputerTurn();
ValuesCheck();
}
##############################################################
public static class Globals
{
public static char[,] values = {
{ ' ', ' ', ' ' },
{ ' ', ' ', ' ' },
{ ' ', ' ', ' ' } }; // this changes fine in the exact same class the other variable is
but playerPawn does not

public static char playerPawn = ' ';
}
DDoktor910/30/2022
Your code is very hard to read. Maybe try pasting it an a proper code block
DDoktor910/30/2022
$code
MMODiX10/30/2022
To post C# code type the following:
```cs
// code here
```

Get an example by typing $codegif in chat

If your code is too long, post it to: https://paste.mod.gg/
DDoktor910/30/2022
I can't see you accessing any properties of the Globals class in your other code so playerPawn = 'O' doesn't make any sense because that variable isn't declared anywhere
DDoktor910/30/2022
I would have expected to see Globals.playerPawn = 'O'
Bbialasik__10/30/2022
omfg
Bbialasik__10/30/2022
TY
Bbialasik__10/30/2022
@Doktor9 ur a legend
Bbialasik__10/30/2022
char playerPawn = Globals.playerPawn;
Bbialasik__10/30/2022
before
Bbialasik__10/30/2022
i had something like this