Added mozart and a project

This commit is contained in:
2025-08-11 13:51:04 +02:00
committed by personal name
commit 47305404a8
1130 changed files with 8175 additions and 0 deletions

30
Die.cs Normal file
View File

@@ -0,0 +1,30 @@
namespace Mozart
{
public class Die
{
Random random = new Random();
public int sides { get; set; }
public Die(int sides)
{
this.sides = sides;
}
public int Throw()
{
return random.Next(1, sides + 1);
}
public int Throw(int total)
{
int sum = 0;
for (int i = 0; i < total; i++)
{
sum += Throw();
}
return sum;
}
}
}