Open tissatussa opened 1 month ago
btw. i switched the title .. at first i thought the main issue was that castling rights were not updated (after castling on move 5 and 6) but i was mistaken : the shown FEN was my starting position - sorry.
Time handling code not really set up for these parameters. Either expected (1) "movetime" parameter or (2) full set of time parameters with "movestogo" as well as "wtime" and "btime". With these parameters it fell into option (2) and a further issue was then created given the negative time passed in for "btime".
Code changed to handle this set of parametres: if you do not provide full parameters it just uses either the "wtime" or "btime" as if they were "movetime", depending on whose turn to move.
This change is in v.0.5.0.2.
Will close later if this does indeed fix the issue.
Actually previous comment was not accurate. Needed instead to use option (2) but allow for issue with a negative other time.
OK
compiling v0.5.0.2 was successful ! no errors or even warnings - note: on my Linux i compile with dotnet
8, it works with a root .sln
file but it needs a trick i found, which still works with NET 8 :
Net5.0 RC2: When building a solution with a target runtime ID an error is given #14281 https://github.com/dotnet/sdk/issues/14281
Here is another workaround which may be better than creating publish profiles for each project.
Create a Directory.Build.props
file in the root of your repo with the following contents:
<Project>
<PropertyGroup>
<RuntimeIdentifier>$(MyRuntimeIdentifier)</RuntimeIdentifier>
</PropertyGroup>
</Project>
Then when you build or publish, specify the RuntimeIdentifier with the MyRuntimeIdentifier property instead of the --runtime parameter. For example: [..]
now this works for me :
(base) roelof@roelof-HP-Elite-x2-1012-G2:~/Compiled/Flounder-v.0.5.0.2$ dotnet build ./Flounder.sln -p:MyRuntimeIdentifier=linux-x64 -o ./Flounder-v0.5.0.2-compiled-HP-net8
note: i should give an -o [pathname]
?! without it, compilation gives some error .. but the given name becomes a folder, where the resulting binary is located .. i copied all these files in their folder, otherwise the binary doesn't run .. do we need all these files on Linux ? I'm not into .NET and dotnet :-)
regarding the time management : v0.5.0.2 doesn't lose on time but it has a poor time management .. in a 7m+3s game it takes almost all time upto move 4, then using only the 3 sconds bonus for every move .. it was a draw, but it might have won ..
[Event "engine vs engine"]
[Site "Holland"]
[Date "2024.05.20"]
[Round "?"]
[White "Flounder v0.5.0.2 NN"]
[Black "4ku v4.0"]
[Result "1/2-1/2"]
[FEN "rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1"]
[GameDuration "00:25:15"]
[PlyCount "251"]
[SetUp "1"]
[TimeControl "420+3"]
1... d5 {-0.38/23 15s} 2. d4 {+0.25/16 390s} Nf6 {-0.46/22 17s}
3. e3 {+0.22/11 36s} c5 {-0.23/24 16s} 4. Be2 {+0.33/9 3.0s} Nc6 {+0.03/25 20s}
5. O-O {+0.25/9 3.0s} cxd4 {-0.07/25 27s} 6. exd4 {+0.31/9 3.0s}
Bf5 {0.00/26 11s} 7. c3 {+0.32/9 3.0s} e6 {+0.03/25 13s} 8. Nh4 {+0.54/9 3.0s}
Be4 {-0.10/25 11s} 9. Nd2 {+0.63/9 3.0s} Be7 {-0.06/27 12s}
10. Nxe4 {+0.56/9 3.0s} dxe4 {-0.06/27 13s} 11. g3 {+0.59/8 3.0s}
O-O {0.00/26 10s} 12. Ng2 {+0.37/8 2.6s} e5 {-0.21/26 33s}
13. dxe5 {+0.62/10 3.4s} Nxe5 {-0.24/26 41s} 14. Bf4 {+0.60/8 3.0s}
Ng6 {-0.21/25 8.3s} 15. Qxd8 {+0.77/9 2.5s} Rfxd8 {-0.13/28 8.6s}
16. Be3 {+0.83/9 3.5s} Nd5 {-0.11/28 7.6s} 17. Bd4 {+1.06/9 2.6s}
Nb4 {-0.23/28 19s} 18. Rad1 {+0.84/9 3.4s} Nc2 {-0.55/26 13s}
19. Be3 {+0.81/11 2.4s} Nxe3 {-0.40/25 6.1s} 20. Nxe3 {+0.75/10 3.6s}
Ne5 {-0.64/25 18s} 21. Nc4 {+0.68/9 2.4s} Nc6 {-0.45/24 6.4s}
22. Kh1 {+0.78/7 3.6s} Rxd1 {-0.42/25 5.3s} 23. Rxd1 {+0.45/10 2.6s}
Rd8 {-0.22/25 6.4s} 24. g4 {+0.49/9 3.4s} g6 {0.00/26 5.5s}
25. Rxd8+ {+0.28/10 3.0s} Nxd8 {+0.02/28 6.0s} 26. Nd2 {+0.16/9 3.0s}
f5 {+0.27/26 5.6s} 27. gxf5 {-0.20/10 2.4s} gxf5 {+0.30/28 8.8s}
28. f3 {-0.21/9 3.6s} e3 {+0.25/28 5.5s} 29. Bc4+ {-0.44/10 3.0s}
Kg7 {+0.64/29 9.5s} 30. Nb3 {-0.46/10 3.0s} Nc6 {+0.75/29 5.1s}
31. Kg2 {-0.72/10 3.0s} Ne5 {+0.82/28 4.5s} 32. Be2 {-0.63/11 2.9s}
Kf6 {+0.75/31 4.6s} 33. Na5 {-0.44/11 2.6s} b6 {+0.57/34 4.5s}
34. Nc4 {-0.65/12 3.5s} Nxc4 {+0.58/35 4.9s} 35. Bxc4 {-0.64/12 3.0s}
Kg5 {+0.56/32 4.9s} 36. Be2 {-0.60/11 3.0s} h5 {+1.55/38 6.6s}
37. Kg3 {-0.66/10 3.0s} Bd6+ {+1.56/40 3.9s} 38. Kg2 {-0.79/12 3.0s}
Kf4 {+1.53/39 4.6s} 39. Ba6 {-0.77/12 2.5s} h4 {+1.53/41 12s}
40. h3 {-0.76/15 3.3s} Bc5 {+0.57/30 3.7s} 41. Be2 {-0.76/16 3.3s}
Be7 {+0.55/33 3.8s} 42. Bd3 {-0.73/14 3.0s} Bg5 {+0.54/36 3.9s}
43. Be2 {-0.74/15 3.0s} Ke5 {+0.54/37 7.2s} 44. Kf1 {-0.17/11 3.0s}
f4 {+0.53/41 5.0s} 45. Ke1 {+0.03/12 3.0s} Kd5 {+0.53/44 3.5s}
46. Kd1 {0.00/12 3.0s} Kc5 {+0.50/44 3.3s} 47. a4 {+0.08/12 2.8s}
Bd8 {+0.48/51 6.0s} 48. Ba6 {+0.13/13 2.9s} Bc7 {+0.39/45 3.3s}
49. Kc2 {+0.11/13 2.7s} Kd5 {+0.39/46 3.6s} 50. Kd3 {+0.10/14 3.3s}
Ke5 {+0.39/48 3.6s} 51. Bc4 {+0.10/13 3.0s} Bd6 {+0.38/47 3.1s}
52. Kc2 {+0.08/14 2.8s} Bc5 {+0.11/44 3.3s} 53. Ba6 {+0.09/14 3.4s}
Bf8 {0.00/47 4.3s} 54. Bd3 {+0.09/12 3.1s} a5 {0.00/51 3.3s}
55. Be2 {+0.04/14 2.7s} Bd6 {0.00/50 3.1s} 56. Bb5 {+0.08/13 3.3s}
Kf5 {0.00/59 8.8s} 57. Kd3 {+0.01/12 3.0s} Bc5 {0.00/56 3.1s}
58. Ba6 {+0.01/14 2.5s} Ke5 {0.00/57 3.1s} 59. Kc2 {+0.01/17 2.9s}
Kd5 {0.00/58 3.2s} 60. b3 {0.00/12 3.3s} Bf8 {+0.97/40 2.8s}
61. Be2 {0.00/15 2.7s} Ke6 {+0.97/44 3.5s} 62. Ba6 {0.00/19 3.5s}
Bd6 {+0.98/45 2.8s} 63. Bc4+ {0.00/18 2.8s} Ke5 {+0.91/46 3.2s}
64. Be2 {0.00/26 3.2s} Bf8 {+0.92/45 2.8s} 65. Bc4 {0.00/29 3.0s}
Kf5 {+0.92/47 3.8s} 66. Ba6 {0.00/22 2.7s} Bg7 {+0.91/43 3.0s}
67. b4 {0.00/15 2.7s} Bf8 {+0.88/35 2.9s} 68. Kb3 {0.00/16 3.6s}
Be7 {+0.50/34 2.9s} 69. Be2 {0.00/15 2.6s} Ke6 {+0.21/36 2.8s}
70. Bc4+ {0.00/19 3.4s} Ke5 {0.00/37 2.8s} 71. Ba6 {0.00/21 2.8s}
axb4 {0.00/40 3.2s} 72. cxb4 {+0.02/15 3.2s} Bd6 {0.00/44 2.8s}
73. Kc3 {+0.09/12 3.0s} Be7 {0.00/56 3.1s} 74. a5 {+0.21/12 2.7s}
bxa5 {+1.81/49 2.8s} 75. bxa5 {+0.10/16 3.2s} Bd8 {+1.77/54 3.6s}
76. Kd3 {+0.11/14 2.5s} Bxa5 {+1.80/65 2.9s} 77. Ke2 {+0.05/14 3.6s}
Kd4 {+1.75/65 2.8s} 78. Bc8 {+0.05/14 2.7s} Bb4 {+1.70/65 2.9s}
79. Be6 {+0.03/17 2.6s} Bd6 {+1.67/64 2.9s} 80. Kd1 {+0.03/20 3.0s}
Kd3 {+1.70/64 3.2s} 81. Bf5+ {+0.04/17 2.9s} Kc4 {+1.66/66 3.0s}
82. Bg6 {+0.03/19 3.4s} Bb8 {+1.55/63 3.2s} 83. Bh7 {+0.03/23 3.3s}
Bc7 {+1.54/59 2.9s} 84. Be4 {+0.03/15 2.5s} Bb6 {+1.57/60 2.9s}
85. Ke2 {+0.02/17 3.1s} Kb4 {+1.64/63 3.1s} 86. Ke1 {+0.02/19 2.9s}
Ba5 {+1.64/62 3.0s} 87. Bh7 {+0.03/17 2.9s} Kc5+ {+1.65/60 2.9s}
88. Kd1 {+0.02/19 3.6s} Kd4 {+1.61/59 2.8s} 89. Bf5 {+0.02/22 3.0s}
Bb4 {+1.62/63 2.8s} 90. Ke2 {+0.02/19 2.5s} Kc3 {+1.63/61 3.0s}
91. Bg6 {+0.02/24 3.4s} Kb2 {+1.58/61 2.9s} 92. Bh7 {+0.02/25 2.9s}
Ka3 {+1.55/61 3.0s} 93. Kd1 {+0.02/27 3.1s} Ka4 {+1.58/60 3.3s}
94. Be4 {+0.02/28 2.6s} Kb5 {+1.45/57 3.2s} 95. Ke2 {+0.02/27 3.1s}
Ba5 {+1.49/59 2.8s} 96. Bd3+ {+0.02/27 3.1s} Kc5 {+1.54/58 2.8s}
97. Kd1 {+0.02/27 2.7s} Kd5 {+1.56/59 2.9s} 98. Ba6 {+0.02/24 2.9s}
Bc3 {+1.54/59 2.9s} 99. Bb7+ {+0.02/25 3.1s} Kd6 {+1.48/60 3.2s}
100. Ke2 {+0.02/24 3.4s} Kc5 {+1.41/59 2.9s} 101. Be4 {+0.02/25 2.7s}
Kb4 {+1.43/63 2.9s} 102. Bg6 {+0.02/27 3.0s} Be5 {+1.44/60 2.8s}
103. Bh5 {+0.02/24 2.8s} Bc7 {+1.54/58 2.9s} 104. Bg4 {+0.02/30 3.4s}
Kc5 {+1.56/58 3.5s} 105. Bc8 {+0.02/24 3.0s} Kd4 {+1.54/59 2.8s}
106. Bf5 {+0.02/25 2.6s} Bd6 {+1.55/59 3.0s} 107. Bh7 {+0.02/27 3.1s}
Ba3 {+1.56/57 2.8s} 108. Be4 {+0.02/28 3.2s} Be7 {+1.56/65 2.8s}
109. Bd3 {+0.02/28 3.0s} Bf6 {+1.56/68 2.9s} 110. Bh7 {+0.02/26 2.6s}
Kc3 {+1.56/68 3.1s} 111. Bf5 {+0.02/27 3.2s} Bd4 {+1.45/60 2.9s}
112. Kd1 {+0.02/29 3.0s} Be5 {+1.50/59 2.8s} 113. Be4 {+0.02/28 2.8s}
Kc4 {+1.51/62 2.8s} 114. Ke2 {+0.02/27 3.7s} Kb4 {+1.51/63 3.0s}
115. Bg6 {+0.02/24 2.6s} Bh8 {+1.50/61 3.8s} 116. Kd1 {+0.02/26 3.3s}
Kc4 {+1.40/59 3.3s} 117. Ke1 {+0.02/27 2.7s} Kd5 {+1.42/59 4.1s}
118. Ke2 {+0.02/26 2.7s} Bg7 {+1.45/54 2.7s} 119. Be4+ {+0.02/24 3.1s}
Kd6 {+1.47/57 3.0s} 120. Bf5 {+0.02/26 3.1s} Bf6 {+1.50/56 2.8s}
121. Bc8 {+0.02/27 3.2s} Bb2 {+1.52/59 2.8s} 122. Kd1 {+0.02/18 2.8s}
Kc5 {+1.45/60 2.8s} 123. Bf5 {+0.02/27 3.0s} Bf6 {+1.46/61 2.8s}
124. Bg6 {+0.02/26 2.9s} Bg7 {+1.48/59 4.3s} 125. Bf7 {+0.02/28 3.1s}
Kb5 {+1.48/57 3.3s} 126. Ke2 {+0.02/28 3.2s}
Bf6 {+1.49/59 3.0s, Draw by fifty moves rule} 1/2-1/2
while testing your v0.5.0.0 in CuteChess the engine lost on time .. it was a game with fixed start position (Flounder had to open the game with 1.Nf3) against another engine (on another PC), which moves i entered by hand .. here's the game :
i must say Black had negative time for many moves, because i paused frequently, but normally CuteChess allows this when a human is playing ('human' = Certaur manually), so i guess this was NOT the cause ..
here's the log tail .. sorry i couldn't save the full log, i switched the CuteChess window pane several times which makes CuteChess refreshes its log ..
[ i'm on Xubuntu 22.04 ]