diff --git a/README.md b/README.md index 9b41296..f82b585 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Initializes the engine and provides engine information. **Example:** ``` uci -id name Woodpusher 1.4.0+d6be4b9c9fa56528613008cd6f05241629906b4f +id name Woodpusher 1.4.1+689e19f3ce89cc8b63870a0e3e3c6f482ed476d3 id author Mikael Fredriksson option name OwnBook type check default true uciok diff --git a/Woodpusher/UniversalChessInterface.cs b/Woodpusher/UniversalChessInterface.cs index 4981969..0deea00 100644 --- a/Woodpusher/UniversalChessInterface.cs +++ b/Woodpusher/UniversalChessInterface.cs @@ -29,8 +29,8 @@ public class UniversalChessInterface private static readonly Regex PositionRegex = new(@"^(position).+?(fen(.+?))?(moves(.+?))?$", RegexOptions.Compiled); private static readonly Regex MovesRegex = new(@"([a-h][1-8][a-h][1-8][rnbq]?)", RegexOptions.Compiled); - private static readonly Regex WhiteTimeRegex = new(@"wtime (\d+)", RegexOptions.Compiled); - private static readonly Regex BlackTimeRegex = new(@"btime (\d+)", RegexOptions.Compiled); + private static readonly Regex WhiteTimeRegex = new(@"wtime (-?\d+)", RegexOptions.Compiled); + private static readonly Regex BlackTimeRegex = new(@"btime (-?\d+)", RegexOptions.Compiled); private static readonly Regex MovesToGoRegex = new(@"movestogo (\d+)", RegexOptions.Compiled); private static readonly Regex MovetimeRegex = new(@"movetime (\d+)", RegexOptions.Compiled); private static readonly Regex PerftRegex = new(@"perft (\d+)", RegexOptions.Compiled); @@ -260,4 +260,4 @@ private void Go(string command) } } } -} +} \ No newline at end of file diff --git a/Woodpusher/Woodpusher.csproj b/Woodpusher/Woodpusher.csproj index 83a3b8b..c82be8c 100644 --- a/Woodpusher/Woodpusher.csproj +++ b/Woodpusher/Woodpusher.csproj @@ -7,7 +7,7 @@ enable SicTransit.Woodpusher Mikael Fredriksson <micke@sictransit.net> - 1.4.0 + 1.4.1