Console Application doesn't output anything. (Warning: Lots of code)
Does anyone know why whenever I run this application, it doesn't output anything on the screen? namespace ConsoleApp17 { class Program { class War { public War(Random x, Random y, int cardx, int cardy) { while (cardx > 0 && cardy > 0) { y.Next(10); x.Next(10); if (x.Next(10) > y.Next(10)) { cardx += 2; cardy -= 2; Console.WriteLine("Deck 1: " + cardx + "Deck 2: " + cardy); Console.WriteLine(); Console.WriteLine("Press any key to flip the next cards."); Console.ReadKey(); } else if (y.Next(10) > x.Next(10)) { cardy += 2; cardx -= 2; Console.WriteLine("Deck 1: " + cardx + "Deck 2: " + cardy); Console.WriteLine(); Console.WriteLine("Press any key to flip the next cards."); Console.ReadKey(); } } if (cardx <= 0) { Console.WriteLine("Deck 2 wins!"); } else if (cardy <= 0) { Console.WriteLine("Deck 1 wins!"); } else { Console.WriteLine("It's a tie!"); } } } static void Main(string[] args) { Random card1 = new Random(10); Random card2 = new Random(10); War war = new War(card1, card2, 10, 10); Console.ReadKey(); } } }