static void Main(string[] args) { Console.SetWindowSize(WindowHeight, WindowWidth); Console.SetBufferSize(WindowHeight, WindowWidth); Console.BackgroundColor = ConsoleColor.DarkCyan; Console.ForegroundColor = ConsoleColor.Cyan; Console.CursorVisible = false; game = new Game(Console.BufferHeight - 1, Console.BufferWidth); Thread inputThread = new Thread(new ThreadStart(Control)); game.Start(); inputThread.Start(); while (game.IsRunning) { Console.SetCursorPosition(0, 0); Console.Write(game.MapToString()); game.UpdateSnake(); Console.Title = WindowTitle + " :: " + "[Skóre: " + game.Score + "]"; Thread.Sleep(100); } }