Created
July 30, 2019 13:16
-
-
Save BMU-Verlag/1d47af14f975dcf74b8b4b9ff988f5d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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