31 lines
760 B
C#
31 lines
760 B
C#
Random dice = new Random();
|
|
|
|
int roll1 = dice.Next(1, 7);
|
|
int roll2 = dice.Next(1, 7);
|
|
int roll3 = dice.Next(1, 7);
|
|
int total = roll1 + roll2 + roll3;
|
|
|
|
Console.WriteLine($"Dice roll: {roll1} + {roll2} + {roll3}");
|
|
//bonus 6 poinst for two same dices
|
|
if (roll1 == roll2 || roll1 == roll3 || roll2 == roll3)
|
|
{
|
|
total += 2;
|
|
Console.WriteLine("Congratulations NIGGER you just won.......... 2 BONUS points!!!!");
|
|
}
|
|
//bonus 6 points for all the same dices
|
|
if (roll1 == roll2 && roll3 == roll1)
|
|
{
|
|
total += 6;
|
|
Console.WriteLine("You are a CHEATER!!!\n YOUR COMPUTER IS GOING TO KAPUT IN 60 SECONDS ");
|
|
}
|
|
|
|
const int WIN_POINTS = 15;
|
|
if (total >= WIN_POINTS)
|
|
{
|
|
Console.WriteLine("You win!");
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("LOOSER!!! hahaha");
|
|
}
|