Skip to content

Commit

Permalink
some more time
Browse files Browse the repository at this point in the history
  • Loading branch information
znxftw committed Dec 17, 2024
1 parent 784894a commit c8e09d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rudim/CLI/UCI/TimeManagement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Rudim.CLI.UCI
public static class TimeManagement
{
// Move Number 0 - 10 20 30 40 50 60+
private static double[] Ratios = { 0.1, 0.2, 0.25, 0.25, 0.2, 0.05 };
private static readonly double[] Ratios = [0.1, 0.2, 0.375, 0.275, 0.175, 0.1];
public static int CalculateMoveTime(int moveNumber, int clock, int increment)
{
double moveTime = clock * Ratios[Math.Min(moveNumber / 20, 5)] / 10 + increment - Constants.BufferTime;
Expand Down

0 comments on commit c8e09d7

Please sign in to comment.