public static void Main()
int h = Polygon.GetClientHeight();
Random rnd = new Random();
int x = rnd.Next(400, 501);
double haloka = 2 * h / 2.5;
Polygon pM = new Polygon(20, 3);
Polygon p2 = new Polygon(20, 3);
Polygon cherry = new Polygon(20, 5);
Point pm1 = new Point(x, -h / 2.5);
Point pm2 = new Point(-x, -h / 2.5);
Point cherry2 = new Point(0, h / 2.5);
Polygon line1 = new Polygon(pm1, cherry2);
Polygon line2 = new Polygon(pm2, cherry2);
while (pM.GetCenter().GetX() >= 0 && p2.GetCenter().GetX() <= 0)
if (Console.KeyAvailable)
ConsoleKeyInfo key = Console.ReadKey();
if (pM.GetCenter().GetX() == 0)
Console.WriteLine("Congrats!!!! you won the game!");
Console.WriteLine("You lost... try again (ง'̀-'́)ง " );