// vypíše barevnou hrací desku private static void PrintGame() { PrintHead(); int i = 0; foreach (char c in g.GetBoard().ToString()) { if (i > 2) { switch (c) { case '1': Console.ForegroundColor = ConsoleColor.Blue; break; case '2': Console.ForegroundColor = ConsoleColor.Green; break; case '3': Console.ForegroundColor = ConsoleColor.Red; break; case '4': Console.ForegroundColor = ConsoleColor.Magenta; break; case '5': Console.ForegroundColor = ConsoleColor.Cyan; break; case '6': Console.ForegroundColor = ConsoleColor.DarkCyan; break; case '7': Console.ForegroundColor = ConsoleColor.DarkMagenta; break; case 'X': Console.ForegroundColor = ConsoleColor.Yellow; break; case '\n': i = -1; break; } } Console.Write(c); Console.ResetColor(); i++; } }