Professional Documents
Culture Documents
// {
// System.Console.Write("====== Dice Game ======\ntype 'Start' or 'S' to roll
the dice: ");
// string startRoll = Console.ReadLine()!;
// if (!(startRoll.Equals("Start", StringComparison.OrdinalIgnoreCase) ||
startRoll.Equals("S", StringComparison.OrdinalIgnoreCase)))
// {
// System.Console.WriteLine("Invalid Key provided");
// condition = true;
// }
// else
// {
// Random random = new();
// int dice0ne = random.Next(1, 7);
// int diceTwo = random.Next(1, 7);
// int diceThree = random.Next(1, 7);
// totalPoint = dice0ne + diceTwo + diceThree;
// }
// // ======= PRIZES =======
// if (totalPoint >= 10 && totalPoint <= 13)
// {
// System.Console.WriteLine("Congratulations!!! :)\nYou get a balloon");
// // System.Console.WriteLine($"Total score: {totalPoint}");
// }
// else if (totalPoint >= 14 && totalPoint <= 16)
// {
// System.Console.WriteLine("Congratulations!!! (:)(\nYou get an
Exercise");
// }
// else if (totalPoint == 17)
// {
// System.Console.WriteLine("Congratulations!!! (:)(\nYou get a 5000mah
power bank");
// }
// else if (totalPoint == LUCKYNUMBER)
// {
// System.Console.WriteLine("Congratulations!!!\nYou rolled the lucky
number");
// System.Console.WriteLine("You win a Samsung A24");
// }
// else if (totalPoint >= 18 && totalPoint <= 20)
// {
// System.Console.WriteLine("Congratulations!!! :)\nYou win a Sliver bird
Cinema Ticket");
// }
// if (userChoice == 1)
// {
// condition = true;
// }
// else
// {
// System.Console.WriteLine("Exited Successfully");
// condition = false;
// }
// }