Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.Write("Enter filename of input poker hands: ");

            string inputFileName = Console.ReadLine();

            PokerRound round = new PokerRound(inputFileName);

            round.DetermineWinner();
        }
Exemplo n.º 2
0
    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) + "\",");
    }
Exemplo n.º 3
0
    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);
    }