Esempio n. 1
0
        public static void DrawBrackets()
        {
            string text = "\n" +
                          " -----------                                                                                                                            ----------- \n" +
                          " | {0}  | {1} | -----                                                                                                              ----- | {9} |  {8} | \n" +
                          " -----------       |                                                                                                            |       ----------- \n" +
                          "                   |                                                                                                            | \n" +
                          "                 -----------                                                                                            ----------- \n" +
                          "                 | {32}  | {33} | -----                                                                              ----- | {37} |  {36} | \n" +
                          "                 -----------       |                                                                            |       ----------- \n" +
                          "                   |               |                                                                            |               | \n" +
                          " -----------       |               |                                                                            |               |       ----------- \n" +
                          " | {2}  | {3} | -----                |                                                                            |                ----- | {11} |  {10} | \n" +
                          " -----------                       |                              !!! CHAMPIONS !!!                             |                       ----------- \n" +
                          "                                 -----------                          =========                         ----------- \n" +
                          "                                 | {48}  | {49} | -----                                              ----- | {53} |  {52} | \n" +
                          "                                 -----------       |                     {65}                    |       ----------- \n" +
                          " -----------                       |               |                                            |               |                       ----------- \n" +
                          " | {4}  | {5} | -----                |               |                                            |               |                ----- | {13} |  {12} | \n" +
                          " -----------       |               |               |                                            |               |               |       ----------- \n" +
                          "                   |               |               |                                            |               |               | \n" +
                          "                 -----------       |               |                                            |               |       ----------- \n" +
                          "                 | {34}  | {35} | -----                |                                            |                ----- | {39} |  {38} | \n" +
                          "                 -----------                       |                                            |                       ----------- \n" +
                          "                   |                               |                                            |                               | \n" +
                          " -----------       |                               |                                            |                               |       ----------- \n" +
                          " | {6}  | {7} | -----                                |                                            |                                ----- | {15} |  {14} | \n" +
                          " -----------                                       |                                            |                                       ----------- \n" +
                          "                                                 -----------                            ----------- \n" +
                          "                                                 | {60}  | {61} |          FINALS          | {63} |  {62} | \n" +
                          "                                                 -----------                            ----------- \n" +
                          " -----------                                       |                                            |                                       ----------- \n" +
                          " | {16}  | {17} | -----                                |                                            |                                ----- | {25} |  {24} | \n" +
                          " -----------       |                               |                                            |                               |       ----------- \n" +
                          "                   |                               |                                            |                               | \n" +
                          "                 -----------                       |                                            |                       ----------- \n" +
                          "                 | {40}  | {41} | -----                |                                            |                ----- | {45} |  {44} | \n" +
                          "                 -----------       |               |            Third Place Play-0ff            |               |       ----------- \n" +
                          "                   |               |               |       -----------        -----------       |               |               | \n" +
                          " -----------       |               |               |       | {56}  | {57} |      | {59} |  {58} |       |               |               |       ----------- \n" +
                          " | {18}  | {19} | -----                |               |       -----------        -----------       |               |                ----- | {27} |  {26} | \n" +
                          " -----------                       |               |                                            |               |                       ----------- \n" +
                          "                                 -----------       |                   Third                    |       ----------- \n" +
                          "                                 | {50}  | {51} | -----                      {64}                     ----- | {55} |  {54} | \n" +
                          "                                 -----------                                                            ----------- \n" +
                          " -----------                       |                                                                            |                       ----------- \n" +
                          " | {20}  | {21} | -----                |                                                                            |                ----- | {29} |  {28} | \n" +
                          " -----------       |               |                                                                            |               |       ----------- \n" +
                          "                   |               |                                                                            |               |  \n" +
                          "                 -----------       |                                                                            |       ----------- \n" +
                          "                 | {42}  | {43} | -----                                                                              ----- | {47} |  {46} | \n" +
                          "                 -----------                                                                                            ----------- \n" +
                          "                   |                                                                                                            | \n" +
                          " -----------       |                                                                                                            |       ----------- \n" +
                          " | {22}  | {23} | -----                                                                                                              ----- | {31} |  {30} | \n" +
                          " -----------                                                                                                                            ----------- \n" +
                          "\n";
            Knockout ro16   = DataContainer.koRounds[0];
            Knockout qf     = DataContainer.koRounds[1];
            Knockout sf     = DataContainer.koRounds[2];
            Knockout tp     = DataContainer.koRounds[3];
            Knockout finals = DataContainer.koRounds[4];

            text = string.Format(text, ro16.teams[0].initial, ro16.games[0].score[0], ro16.teams[1].initial, ro16.games[0].score[1],
                                 ro16.teams[2].initial, ro16.games[1].score[0], ro16.teams[3].initial, ro16.games[1].score[1],
                                 ro16.teams[4].initial, ro16.games[2].score[0], ro16.teams[5].initial, ro16.games[2].score[1],
                                 ro16.teams[6].initial, ro16.games[3].score[0], ro16.teams[7].initial, ro16.games[3].score[1],
                                 ro16.teams[8].initial, ro16.games[4].score[0], ro16.teams[9].initial, ro16.games[4].score[1],
                                 ro16.teams[10].initial, ro16.games[5].score[0], ro16.teams[11].initial, ro16.games[5].score[1],
                                 ro16.teams[12].initial, ro16.games[6].score[0], ro16.teams[13].initial, ro16.games[6].score[1],
                                 ro16.teams[14].initial, ro16.games[7].score[0], ro16.teams[15].initial, ro16.games[7].score[1],
                                 qf.teams[0].initial, qf.games[0].score[0], qf.teams[1].initial, qf.games[0].score[1],
                                 qf.teams[2].initial, qf.games[1].score[0], qf.teams[3].initial, qf.games[1].score[1],
                                 qf.teams[4].initial, qf.games[2].score[0], qf.teams[5].initial, qf.games[2].score[1],
                                 qf.teams[6].initial, qf.games[3].score[0], qf.teams[7].initial, qf.games[3].score[1],
                                 sf.teams[0].initial, sf.games[0].score[0], sf.teams[1].initial, sf.games[0].score[1],
                                 sf.teams[2].initial, sf.games[1].score[0], sf.teams[3].initial, sf.games[1].score[1],
                                 tp.teams[0].initial, tp.games[0].score[0], tp.teams[1].initial, tp.games[0].score[1],
                                 finals.teams[0].initial, finals.games[0].score[0], finals.teams[1].initial, finals.games[0].score[1],
                                 tp.winners[0].initial, finals.winners[0].initial
                                 );
            ChangeTextColor(ConsoleColor.Magenta);
            Console.Write(text);
        }