//Clear console and display current player hand and table info static void WipeWithInfo(Player player) { Console.Clear(); Console.WriteLine("Player: " + player.playerID + " to play..."); Console.WriteLine("\n--------TABLE--------\n"); table.PrintTable(); Console.WriteLine("\n--------CARDS--------\n"); player.PrintHand(); Console.WriteLine("\n--------CHIPS--------\n"); Console.WriteLine("Player has " + player.currentChips + " chips."); Console.WriteLine("Players:"); for (int i = 0; i < players.Count; i++) { if (players[i].inRound == true) { Console.Write("Player" + players[i].playerID + "\t"); Console.Write(players[i].currentChips + "\n"); if (players[i].checking == true) { Console.Write("\tChecking"); } else if (players[i].allIn == true) { Console.WriteLine("All In !"); } } } Console.WriteLine("\n--------OPTIONS--------\n"); }
//Clear console and display current player hand and table info static void WipeWithInfo(Player player) { Console.Clear(); Console.WriteLine("Player: " + player.playerID + " to play..."); table.PrintTable(); player.PrintHand(); Console.WriteLine("Player has " + player.currentChips + " chips."); }