Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created July 29, 2019 15:54
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/2a10fa0e108379b0ab2c558ced25b0f5 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/2a10fa0e108379b0ab2c558ced25b0f5 to your computer and use it in GitHub Desktop.
private void StartButton_Click(object sender, EventArgs e)
{
gameActive = true;
for (var x = 0; x < 3; x++)
{
for (var y = 0; y < 3; y++)
{
fields[x][y] = Player.None;
}
}
Button0_0.Content = "";
Button0_1.Content = "";
Button0_2.Content = "";
Button1_0.Content = "";
Button1_1.Content = "";
Button1_2.Content = "";
Button2_0.Content = "";
Button2_1.Content = "";
Button2_2.Content = "";
fieldsMarked = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment