Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created July 30, 2019 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/1d47af14f975dcf74b8b4b9ff988f5d8 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/1d47af14f975dcf74b8b4b9ff988f5d8 to your computer and use it in GitHub Desktop.
private void MarkField(Button button, int column, int row)
{
button.Content = GetCurrentSymbol();
fields[column][row] = currentPlayer;
fieldsMarked++;
}
private void SwitchPlayer()
{
if (currentPlayer == Player.Player1)
{
currentPlayer = Player.Player2;
}
else
{
currentPlayer = Player.Player1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment