private void Playbt_Click(object sender, EventArgs e) { string P1 = nameX.Text; string P2 = nameO.Text; int mode2 = 1; this.Hide(); var myForm = new Bettle(P1,P2,mode2); myForm.ShowDialog(); // myForm.Show(); }
public void CheckForWinTest3() { string P1 = "AAA"; // TODO: Initialize to an appropriate value string P2 = "BBB"; // TODO: Initialize to an appropriate value int mode = 1; // TODO: Initialize to an appropriate value Bettle target = new Bettle(P1, P2, mode); // TODO: Initialize to an appropriate value string[] array = { "x", "x", "0", "x", "0", "0", "0", "0", "0" }; // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.CheckForWin(array); Assert.AreEqual(expected, actual); //Assert.Inconclusive("Verify the correctness of this test method."); }
private void Playbt_Click(object sender, EventArgs e) { string P1 = oneName.Text; int mode1 = 0; var battle = new Bettle(P1,P1,mode1); battle.ShowDialog(); //battle.Show(); //oneName.Text = battle.Player1Name; // myForm.Show(); this.Hide(); }