Initial setup for testing AI performance, random fixes
Build / Build (push) Successful in 54s

This commit is contained in:
Deukhoofd committed 2025-07-05 13:56:33 +02:00
1 parent 4499927551
commit 32aaa5150a
33 files changed
+511 -26

No files matched your search

@@ -38,4 +38,27 @@ public class SwitchChoice : TurnChoice, ISwitchChoice
{
User.CollectScripts(scripts);
}
/// <inheritdoc />
public override string ToString() =>
$"SwitchChoice: {User} -> {SwitchTo}";
protected bool Equals(SwitchChoice other) =>
other.User == User && other.SwitchTo == SwitchTo;
/// <inheritdoc />
public override bool Equals(object? obj)
{
if (obj is null)
return false;
if (ReferenceEquals(this, obj))
return true;
if (obj is not SwitchChoice other)
return false;
return Equals(other);
}
/// <inheritdoc />
public override int GetHashCode() =>
User?.GetHashCode() ?? 0 ^ SwitchTo?.GetHashCode() ?? 0;
}