/* * Plays the Game I guess? */ private void Play() { while (roundCount <= 100) { ++roundCount; B.Round(); if (B.battleInProgress == 1) { BC.SendBody("\nNew Handcards:\n" + B.HandCardsToString(user1.name), ref client1); BC.SendBody("\nNew Handcards:\n" + B.HandCardsToString(user2.name), ref client2); BC.client1.Close(); BC.client1 = null; BC.client2.Close(); BC.client2 = null; Console.WriteLine("Rewaiting"); BC.Rewait(this); user1Pick = -1; user2Pick = -1; } else { break; } } if (roundCount > 100) { B.EndBattle(0, ref user1, ref user2); } else { B.EndBattle(0, ref user1, ref user2); } BC.SendBody(B.roundEndText + "\n", ref client1); BC.SendBody(B.roundEndText + "\n", ref client2); client1.Close(); client2.Close(); BC.Reset(); }