using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
static void Main(string[] args)
DateTime now = DateTime.Now;
Console.WriteLine(now.ToString("F"));
DateTime timeGreeting = DateTime.Now;
if (timeGreeting.Hour >= 5 && timeGreeting.Hour < 12)
Console.WriteLine("Good morning!, ready for adventure?");
else if (timeGreeting.Hour >= 12 && timeGreeting.Hour < 16)
Console.WriteLine("Good afternoon!, lets get started!");
Console.WriteLine("Good night!, why are you up this late?");
Console.WriteLine("What's that blocking our path?...A GOBLIN! We must defeat it to get through! Hit space and Roll above 5 to slay the Goblin!");
while (Console.ReadKey().Key != ConsoleKey.Spacebar) ;
Random rnd = new Random();
int newRandomNumber = rnd.Next(0, 21);
Console.WriteLine(newRandomNumber);
Console.WriteLine("the goblin kills you by beating you with your own arms");
Console.WriteLine("you kill the terrible goblin");
if (newRandomNumber >= 5)
Console.WriteLine("Congradulations you have defeated the goblin now choose a path to take type 1 for left or 0 for right");
int answer = rnd.Next(0, 2);
Console.WriteLine(answer);
for (int i = 0; i <= 1; i++)
Console.Write("Attempt ");
Console.WriteLine(i + 1);
temp = Console.ReadLine();
Console.WriteLine("you have chosen poorly player falls off a cliff to thier death");
else if (userinput == answer)
Console.WriteLine("you have chosen wisely continue on your way");
Console.WriteLine("Press ENTER to close console......");
} while (Console.ReadKey().Key != ConsoleKey.Enter);
System.Environment.Exit(0);