예제 #1
0
파일: Program.cs 프로젝트: denisonikkk/dns
        public void DrawTable(basketball_match m, int[,] arr1, int[,] arr2, Coach c1, Coach c2)
        {
            Console.WriteLine("---------------------------------------------------------------------------------");
            Console.WriteLine(string.Format("|{0,15}|{1,64}|", "Date", m.GetDate()));
            Console.WriteLine("----------------------------------------------------------------------------------");
            Console.WriteLine(string.Format("|{0,15}|{1,31}||{2,31}|", "Teams", m.GetTeam1(), m.GetTeam2()));
            Console.WriteLine("----------------------------------------------------------------------------------");
            Console.WriteLine(string.Format("|{0,15}|{1,15}|{2,15}||{3,15}|{4,15}|", "     ", "Games", "Age", "Games", "Age"));
            Console.WriteLine("----------------------------------------------------------------------------------");
            Console.WriteLine(string.Format("|{0,15}|{1,15}|{2,15}||{3,15}|{4,15}|", "Coach", c1.GetGames(), c1.GetAge(), c2.GetGames(), c2.GetAge()));
            Console.WriteLine("----------------------------------------------------------------------------------");
            Console.WriteLine(string.Format("|{0,15}|{1,15}|{2,15}||{3,15}|{4,15}|", "     ", "Skill", "Lucky", "Skill", "Lucky"));
            Console.WriteLine("----------------------------------------------------------------------------------");

            for (int p = 0; p < 5; p++)
            {
                Console.WriteLine(string.Format("|{0,15}|{1,15}|{2,15}||{3,15}|{4,15}|", "Player", arr1[p, 0], arr1[p, 1], arr2[p, 0], arr2[p, 1]));
                Console.WriteLine("----------------------------------------------------------------------------------");
            }
            Console.WriteLine("Enter something to see the result...");
            Console.ReadLine();
            Console.Clear();
        }
예제 #2
0
파일: Program.cs 프로젝트: denisonikkk/dns
 public void DrawTable(basketball_match m, Coach c1, int[,] arr1)
 {
     Console.WriteLine("-------------------------------------------------");
     Console.WriteLine(string.Format("|{0,15}|{1,31}|", "Teams", m.GetTeam1()));
     Console.WriteLine("-------------------------------------------------");
     Console.WriteLine(string.Format("|{0,15}|{1,15}|{2,15}|", "     ", "Games", "Age"));
     Console.WriteLine("-------------------------------------------------");
     Console.WriteLine(string.Format("|{0,15}|{1,15}|{2,15}|", "Coach", c1.GetGames(), c1.GetAge()));
     Console.WriteLine("-------------------------------------------------");
     Console.WriteLine(string.Format("|{0,15}|{1,15}|{2,15}|", "     ", "Skill", "Lucky"));
     Console.WriteLine("-------------------------------------------------");
     for (int i = 0; i < 5; i++)
     {
         Console.WriteLine(string.Format("|{0,15}|{1,15}|{2,15}|", "Player", arr1[i, 0], arr1[i, 1]));
         Console.WriteLine("-------------------------------------------------");
     }
     Console.WriteLine("Enter something to exit the program...");
     Console.ReadLine();
 }