mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-07-10 14:12:05 -07:00
MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be many adjustments necessary
This commit is contained in:
@@ -17,7 +17,7 @@ public static class GameUtils
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
public static Func<int, int> Roll { get; } = upperLimit => (int) (upperLimit * Rnd.NextSingle()) + 1;
|
||||
|
||||
public static bool RollSatisfies(int upperLimit, Predicate<int> predicate) => predicate(Roll(upperLimit));
|
||||
@@ -32,4 +32,4 @@ public static class GameUtils
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(punch), punch, null)
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user