private void Button_Click(object sender, RoutedEventArgs e) { BoardPieces play1 = new BoardPieces(); play1.Player1Name = txtPlayer1Input.Text; play1.Player2Name = txtPlayer2Input.Text; //When click "Begin" button, becomes true begin = true; lblTurn.Content = txtPlayer1Input.Text + "'s Turn"; }
//reset board and ready to play private void BtnReset_Click(object sender, RoutedEventArgs e) { //need to clear board, cannot figure out. keeps clearing all content. BoardPieces[] play1 = new BoardPieces[42]; click1count = 5; click2count = 5; click3count = 5; click4count = 5; click5count = 5; click6count = 5; click7count = 5; begin = true; }