public static class Program
public static void Main()
Player player1=new Player();
Console.WriteLine("\t-->WELCOME TO HANTAK GAME!<--\n\nNote!Minimum of pay is 10 to 20 maximum only!\nif you won the game your pay will multiply into to two otherwise minus 5!");
Console.WriteLine("\n[0]play [1]exit\n\nEnter number:");
op=int.Parse(Console.ReadLine());
Console.WriteLine("\nEnter player1 name:");
player1.name=Console.ReadLine();
Console.WriteLine("\n\tChose Your Coin\n\t[0]Head [1]Tail");
Console.WriteLine("\nEnter your chossen coin:\t");
player1.select=int.Parse(Console.ReadLine());
Console.WriteLine("\t\nEnter Taya:");
player1.taya=int.Parse(Console.ReadLine());
Random rnd1= new Random();
int toss1= rnd1.Next(0, 2);
Console.WriteLine("\n\t>>Tossed Coin<<");
if(player1.select==toss1)
int price=player1.taya*2;
Console.WriteLine("\n\t Head \n\n You won {0},Amazing!",price);
int price=player1.taya-5;
Console.WriteLine("\n\t Tail \n \nYou lose {0},try again!",price);
else if(player1.select==1)
Random rnd1= new Random();
int toss1= rnd1.Next(0, 2);
Console.WriteLine("\n\tTossed Coin");
if(player1.select==toss1)
int price=player1.taya*2;
Console.WriteLine("\n\t Tail \n You won {0},Amazing!",price);
int price=player1.taya-5;
Console.WriteLine("\n\t Head \t\nYou lose {0},Try again!",price);
Console.WriteLine("Invalid Coin");