Skip to content

Commit

Permalink
⚡Remove unnecessary, initial TT initialization (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio authored Sep 10, 2024
1 parent ffadbb6 commit 64e705a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Lynx/Bench.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public partial class Engine
"3qr2k/1p3rbp/2p3p1/p7/P2pBNn1/1P3n2/6P1/B1Q1RR1K b - - 1 30",
"3qk1b1/1p4r1/1n4r1/2P1b2B/p3N2p/P2Q3P/8/1R3R1K w - - 2 39",

"6RR/4bP2/8/8/5r2/3K4/5p2/4k3 w - -", // SEE test suite - regular promotion
"6RR/4bP2/8/8/5r2/3K4/5p2/4k3 w - - 0 0", // SEE test suite - regular promotion
"1n2kb1r/p1P4p/2qb4/5pP1/4n2Q/8/PP1PPP1P/RNB1KBNR w KQk - 0 1", // SEE test suite - promotion with capture
"6Q1/8/1kp4P/2q1p3/2PpP3/2nP2P1/p7/5BK1 b - - 1 35", // Fischer vs Petrosian - double promotion
"5R2/2k3PK/8/5N2/7P/5q2/8/q7 w - - 0 69", // McShane - Aronian 2012 - knight promotion
Expand Down
3 changes: 2 additions & 1 deletion src/Lynx/Engine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public Engine(ChannelWriter<string> engineWriter)
WarmupEngine();

_engineWriter = engineWriter;
ResetEngine();

// No need for ResetEngine() call here, WarmupEngine -> Bench -> NewGame() calls it
#endif

#pragma warning disable S1215 // "GC.Collect" should not be called
Expand Down

0 comments on commit 64e705a

Please sign in to comment.