Complete game

This commit is contained in:
drewjcooper
2023-01-28 16:30:49 +11:00
parent 3e88424a52
commit 3f2dd9f0a9
8 changed files with 131 additions and 116 deletions

View File

@@ -0,0 +1,12 @@
namespace Queen;
internal static class RandomExtensions
{
internal static Move NextMove(this IRandom random)
=> random.NextFloat() switch
{
> 0.6F => Move.Down,
> 0.3F => Move.DownLeft,
_ => Move.Left
};
}