lithander / Leorik

Leorik is a strong, open-source UCI chess engine written in C#
MIT License
25 stars 3 forks source link

CS8983 error when compiling current branch #3

Closed rwbc closed 1 year ago

rwbc commented 1 year ago

Hi Thomas!

When trying to compile your current branch 'no_handcrafted_terms', I get this error now:

C:\msys64\home\Guenther Simon\Leorik\Leorik.Search\IterativeSearch.cs(6,19): error CS8983: Eine "Struktur" mit Feldinitialisierern muss einen explizit deklarierten Konstruktor enthalten. [C:\msys64\home\Guenther Simon\Leorik\Leorik.Search\L
eorik.Search.csproj]

Best regards, Guenther (and merry xmas in advance :)

Edit: https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/breaking-changes/compiler%20breaking%20changes%20-%20dotnet%207#6

lithander commented 1 year ago

Hi Günther! Thanks for the bug report. I just pushed a fix for the issue, I hope. Let me know if it works on your side, too. Then I'll close the issue!

rwbc commented 1 year ago

Thanks for the quick fix Thomas! All ok now during compiling. (except two or so warnings...one just about a currently unused function 'prepareData')

C:\msys64\home\Guenther Simon\Leorik\Leorik.Tuning\Program.cs(128,6): warning CS8321: Die lokale Funktion "PrepareData" ist deklariert, wird aber nie verwendet. [C:\msys64\home\Guenther Simon\Leorik\Leorik.Tuning\Leorik.Tuning.csproj]
C:\msys64\home\Guenther Simon\Leorik\Leorik.Search\Transpositions.cs(76,16): warning CS8618: Non-Nullable-Feld "_table" muss beim Beenden des Konstruktors einen Wert ungleich NULL enthalten. Erwägen Sie eine Deklaration von "Feld" als Null
able. [C:\msys64\home\Guenther Simon\Leorik\Leorik.Search\Leorik.Search.csproj]

Leorik 2.2.8theta - NO DRAWS!!! 1592568 positions inc theta, MSE:0.4466733, SKIP_OUTLIERS=200
uci
id name Leorik 2.2.8theta - NO DRAWS!!! 1592568 positions inc theta, MSE:0.4466733, SKIP_OUTLIERS=200
id author Thomas Jahn
option name Hash type spin default 50 min 1 max 2047
option name Midgame Randomness type spin default 0 min 0 max 255
option name Endgame Randomness type spin default 0 min 0 max 255
uciok
isready
readyok
position startpos
go depth 18
info depth 1 score cp 62 nodes 21 nps 3000 time 7 pv d2d4
info depth 2 score cp 0 nodes 89 nps 3708 time 24 pv d2d4 d7d5
info depth 3 score cp 47 nodes 262 nps 10916 time 24 pv d2d4 d7d5 g1f3
info depth 4 score cp 0 nodes 494 nps 19760 time 25 pv d2d4 d7d5 g1f3 g8f6
info depth 5 score cp 29 nodes 1239 nps 47653 time 26 pv d2d3 d7d5 g1f3 g8f6 c2c3
info depth 6 score cp 0 nodes 3287 nps 117392 time 28 pv d2d4 d7d5 g1f3 g8f6 b1c3 b8c6
info depth 7 score cp 26 nodes 5928 nps 191225 time 31 pv d2d4 d7d5 g1f3 g8f6 b1c3 b8c6 e2e3
info depth 8 score cp 0 nodes 12425 nps 326973 time 38 pv d2d4 d7d5 g1f3 g8f6 b1c3 b8c6 e2e3 e7e6
info depth 9 score cp 42 nodes 82080 nps 689747 time 119 pv e2e4 d7d5 e4d5 d8d5 b1c3 d5e5 f1e2 e5g5 e2f3
info depth 10 score cp 8 nodes 178234 nps 781728 time 228 pv e2e4 e7e5 g1f3 g8f6 b1c3 b8c6 f1b5 f8b4 e1g1 e8g8
info depth 11 score cp 38 nodes 393964 nps 922632 time 427 pv g1f3 d7d5 d2d4 g8f6 e2e3 c8g4 h2h3 g4f3 d1f3 e7e6 b1d2
info depth 12 score cp 20 nodes 1013159 nps 1138380 time 890 pv e2e4 e7e5 g1f3 g8f6 d2d4 e5d4 e4e5 f6e4 d1d4 d7d5 e5d6 e4d6
info depth 13 score cp 42 nodes 2037904 nps 1221032 time 1669 pv e2e4 e7e5 g1f3 b8c6 b1c3 g8f6 f1b5 f8d6 e1g1 e8g8 f1e1 c6d4 f3d4
info depth 14 score cp 17 nodes 4020261 nps 1294353 time 3106 pv e2e4 e7e5 g1f3 b8c6 b1c3 g8f6 d2d4 f8b4 d4d5 c6e7 f1d3 b4c3 b2c3 d7d6
info depth 15 score cp 32 nodes 8105267 nps 1312806 time 6174 pv e2e4 e7e5 g1f3 b8c6 b1c3 g8f6 f1b5 c6d4 e1g1 d4b5 c3b5 c7c6 b5c3 f8b4 d2d3
info depth 16 score cp 20 nodes 16195015 nps 1341424 time 12073 pv e2e4 e7e5 g1f3 b8c6 f1c4 g8f6 d2d3 f8c5 e1g1 e8g8 b1c3 h7h6 c3d5 f8e8 c2c3 d7d6
info depth 17 score cp 39 nodes 34539133 nps 1321869 time 26129 pv e2e4 e7e5 g1f3 g8f6 d2d4 f6e4 f1d3 d7d5 d4e5 f8c5 d3e4 d5e4 d1d8 e8d8 f3g5 c5b4 c1d2
info depth 18 score cp 27 nodes 69913586 nps 1323343 time 52831 pv e2e4 e7e5 g1f3 g8f6 f3e5 d7d6 e5f3 f6e4 f1d3 d6d5 b1c3 e4c3 d2c3 f8e7 e1g1 e8g8 f1e1 b8c6
bestmove e2e4

I am happy to read you found new motivation in tuning up your evaluation from the ground!

Best wishes, Guenther

lithander commented 1 year ago

Closing the issue after the fix got confirmed