initial commit

This commit is contained in:
2025-08-14 08:35:04 +02:00
commit 6d40bfcf4c
96 changed files with 85096 additions and 0 deletions

41
YatzyLibrary/Models.cs Normal file
View File

@@ -0,0 +1,41 @@
namespace YatzyLibrary
{
public class Die
{
public int sides { get; set; }
public int Throw()
{
Random random = new Random();
return random.Next(1, sides + 1);
}
}
public class CheckOutput
{
public CheckOutput() { }
public CheckOutput(bool success, int value)
{
this.success = success;
this.value = value;
}
public bool success { get; set; }
public int value { get; set; }
public override bool Equals(object? obj)
{
if (obj is CheckOutput other)
{
return success == other.success && value == other.value;
}
return false;
}
public override int GetHashCode()
{
return HashCode.Combine(success, value);
}
}
}