static int birdPosition = 10;
static bool gameOver = false;
Console.CursorVisible = false;
Thread inputThread = new Thread(Input);
Console.SetCursorPosition(10, 10);
Console.WriteLine("¡Game Over! Score: " + score);
if (Console.KeyAvailable && Console.ReadKey(true).Key == ConsoleKey.Spacebar)
pipeGapY = new Random().Next(5, height - 5);
if (birdPosition < 0 || birdPosition >= height)
if (pipeX == 10 && (birdPosition < pipeGapY - 2 || birdPosition > pipeGapY + 2))
for (int y = 0; y < height; y++)
for (int x = 0; x < 40; x++)
if (x == 10 && y == birdPosition)
else if (x == pipeX && (y < pipeGapY - 2 || y > pipeGapY + 2))
Console.WriteLine("Score: " + score);