static void Main(string[] args) { Console.Write("Enter filename of input poker hands: "); string inputFileName = Console.ReadLine(); PokerRound round = new PokerRound(inputFileName); round.DetermineWinner(); }
public void Write(PokerRound round) { string[] hands = new string[round.players.Length]; for (int p = 0; p < round.players.Length; p++) { hands[p] = string.Join(" ", round.players[p]); } file.WriteLine("\t\t\"" + string.Join("|", hands) + "\","); }
void Start() { PokerGameFile file = new PokerGameFile(FileName); for (int i = 0; i < RoundAmount; i++) { PokerRound round = new PokerRound(2); file.Write(round); } file.Save(); Debug.LogFormat("File {0} generated!", FileName); }