You need the exe and cfg file to be in same folder.
Configure uci engines in headsup.cfg file. Example entries in cfg file.
Code: Select all
[ENGINE1]
# First enginefile must be defined. Do not add quotes even if there is space in the path
enginefile = D:/Chess/Engines/Lc0/lc0-v0.25.1-windows-cpu-openblas/lc0.exe
# Set engine options
WeightsFile = D:/Chess/Engines/Lc0/id/591226.pb.gz
# Threads = 2
MinibatchSize = 8
MaxPrefetch = 0
NNCacheSize = 20000000
[ENGINE2]
# Second enginefile must be defined. Do not add quotes even if there is space in the path
enginefile = D:/Chess/Engines/Stockfish/stockfish_11.exe
# Set engine options
Hash = 128
# Threads = 1
# SyzygyPath = D:/Chess/syzygy
# SyzygyProbeLimit = 5
[HEADSUP OPTION]
# Use engine1 if piece_value_switch and move_number_switch are both satisfied.
# Q=9, R=5, B=3, N=3
# Total piece value excluding kings and pawns = 2 x 9 + 4 x 5 + 4 x 3 + 4 x 3 = 62
# Use engine1 if total piece value remaining is above piece_value_switch.
# Default = 62
piece_value_switch = 0
# Use engine1 if move number is below move_number_switch.
# Default = 0
move_number_switch = 16
# Default = false
Log = false
1. Do not add double quotes for the path of engine or file inside the cfg file
2. piece_value_switch and move_number_switch options need to be all true for the first engine to be used.
* In the current setting, piece_value_switch = 0, says to always use engine1 (except in KvK ending). move_number_switch = 16, says use engine1 from move 1 till move 15. So it will swtich to engine2 only at move 16.
* To use both conditions, like use engine2 if total material remaining on the board is 2Q + 4R or 2*9 + 4*5 or 38 and move number is 30 or more:
piece_value_switch = 38
move_number_switch = 30
If total material balance (except kings and pawns) are still above 38 (where Q=9, R=5 B=N=3) and move number is below 30, then use engine1 otherwise use engine2.
Time forfeit tests are all ok after some games.
TC 15s+0.1s, no time forfeit
Code: Select all
Score of Lc0 0.25.1 blas/Stockfish 11 vs Stockfish 11: 2 - 6 - 8 [0.375] 16
... Lc0 0.25.1 blas/Stockfish 11 playing White: 2 - 2 - 5 [0.500] 9
... Lc0 0.25.1 blas/Stockfish 11 playing Black: 0 - 4 - 3 [0.214] 7
... White vs Black: 6 - 2 - 8 [0.625] 16
Elo difference: -88.7 +/- 126.2, LOS: 7.9 %, DrawRatio: 50.0 %
Code: Select all
Finished game 10 (Stockfish 11 vs Lc0 0.25.1 blas/Stockfish 11): 1/2-1/2 {Draw by fifty moves rule}
Score of Lc0 0.25.1 blas/Stockfish 11 vs Stockfish 11: 2 - 2 - 8 [0.500] 12
... Lc0 0.25.1 blas/Stockfish 11 playing White: 2 - 1 - 3 [0.583] 6
... Lc0 0.25.1 blas/Stockfish 11 playing Black: 0 - 1 - 5 [0.417] 6
... White vs Black: 3 - 1 - 8 [0.583] 12
Elo difference: 0.0 +/- 117.6, LOS: 50.0 %, DrawRatio: 66.7 %
[pgn]
[Event "?"]
[Site "?"]
[Date "2020.05.18"]
[Round "18"]
[White "Lc0 0.25.1 blas/Stockfish 11"]
[Black "Stockfish 11"]
[Result "1-0"]
[ECO "A40"]
[GameDuration "00:00:21"]
[GameEndTime "2020-05-18T15:34:18.310 Taipei Standard Time"]
[GameStartTime "2020-05-18T15:33:56.449 Taipei Standard Time"]
[Opening "Modern defense"]
[PlyCount "137"]
[TimeControl "5+0.1"]
1. d4 {book} g6 {book} 2. e4 {+0.33/3 0.20s} d6 {-0.56/16 0.37s}
3. c4 {+0.35/4 0.20s} Bg7 {-0.15/12 0.079s} 4. Nc3 {+0.35/4 0.20s}
Nf6 {-0.50/15 0.32s} 5. Be2 {+0.37/5 0.20s} O-O {-0.43/15 0.13s}
6. Nf3 {+0.34/5 0.20s} e5 {-0.34/16 0.31s} 7. O-O {+0.33/5 0.20s}
exd4 {-0.37/14 0.093s} 8. Nxd4 {+0.31/6 0.20s} Nc6 {-0.36/17 0.22s}
9. Be3 {+0.40/5 0.20s} Re8 {-0.35/17 0.29s} 10. f3 {+0.39/5 0.20s}
Nxd4 {-0.45/14 0.080s} 11. Bxd4 {+0.44/5 0.20s} Bh6 {-0.54/15 0.13s}
12. Kh1 {+0.37/2 0.20s} Nh5 {-0.03/17 0.43s} 13. g3 {+0.36/3 0.20s}
Bh3 {-0.22/14 0.17s} 14. Rg1 {+0.37/3 0.20s} Be6 {-0.38/16 0.45s}
15. f4 {+0.45/3 0.20s} Nf6 {-0.36/13 0.085s} 16. Qd3 {+0.95/15 0.23s}
Bg4 {-0.33/13 0.094s} 17. Bd1 {+1.09/16 0.28s} Bxd1 {-0.68/18 0.88s}
18. Raxd1 {+1.07/15 0.078s} Bg7 {-0.76/13 0.099s} 19. Rgf1 {+1.49/16 0.37s}
Qe7 {-0.91/16 0.93s} 20. f5 {+1.91/16 0.23s} c6 {-0.63/13 0.064s}
21. Qf3 {+1.59/16 0.26s} g5 {-0.63/14 0.13s} 22. h3 {+1.38/18 0.75s}
h6 {-0.67/14 0.27s} 23. Kg2 {+1.29/16 0.38s} Rad8 {-0.67/12 0.090s}
24. Rde1 {+1.41/14 0.12s} a6 {-0.70/17 0.40s} 25. a4 {+1.26/15 0.11s}
Qc7 {-0.89/15 0.28s} 26. h4 {+1.27/16 0.54s} gxh4 {-0.69/15 0.19s}
27. Rh1 {+2.13/13 0.053s} d5 {-0.81/13 0.038s} 28. e5 {+2.49/15 0.16s}
Nh7 {-0.76/17 0.28s} 29. Qg4 {+1.98/20 0.52s} dxc4 {-0.77/15 0.057s}
30. f6 {+2.01/15 0.043s} h3+ {-1.86/17 0.38s} 31. Rxh3 {+2.94/16 0.065s}
Ng5 {-1.84/18 0.099s} 32. fxg7 {+4.19/16 0.068s} Nxh3 {-1.69/16 0.085s}
33. Ne4 {+6.66/14 0.068s} Ng5 {-5.35/19 0.35s} 34. Nf6+ {+7.67/19 0.15s}
Kxg7 {-5.35/1 0s} 35. e6 {+7.87/15 0.073s} Rxe6 {-7.22/16 0.27s}
36. Rxe6 {+7.92/16 0.12s} Qa5 {-5.25/14 0.069s} 37. Re2 {+8.61/15 0.067s}
Rxd4 {-7.26/17 0.18s} 38. Qxd4 {+8.85/13 0.069s} Ne6 {-7.80/15 0.090s}
39. Ne8+ {+8.33/18 0.24s} Kf8 {-8.93/15 0.13s} 40. Qh8+ {+8.92/15 0.081s}
Ke7 {-8.93/1 0s} 41. Nf6 {+8.98/16 0.073s} h5 {-8.24/13 0.059s}
42. Rf2 {+9.14/17 0.23s} Nf8 {-8.15/14 0.10s} 43. Ng8+ {+9.06/15 0.17s}
Ke8 {-7.77/14 0.070s} 44. Nh6 {+9.13/15 0.063s} Qd5+ {-6.93/12 0.044s}
45. Kh2 {+9.21/16 0.11s} h4 {-8.92/14 0.26s} 46. Nf5 {+9.32/16 0.10s}
hxg3+ {-9.22/14 0.16s} 47. Kxg3 {+9.45/15 0.074s} Qd1 {-8.59/15 0.11s}
48. a5 {+9.38/14 0.18s} Qe1 {-9.97/13 0.10s} 49. Kf3 {+10.54/13 0.044s}
Qd1+ {-12.00/14 0.099s} 50. Re2+ {+12.93/17 0.091s} Kd7 {-12.97/17 0.074s}
51. Qxf8 {+14.86/19 0.16s} Qf1+ {-14.62/17 0.13s} 52. Kg3 {+17.00/15 0.045s}
Qg1+ {-16.94/13 0.10s} 53. Kh4 {+17.78/17 0.10s} Qh1+ {-17.37/13 0.097s}
54. Kg4 {+17.99/16 0.073s} Qg1+ {-17.41/17 0.10s} 55. Ng3 {+18.83/17 0.095s}
Qd1 {-10.35/13 0.068s} 56. Kh3 {+23.51/16 0.071s} Qxe2 {-17.56/14 0.13s}
57. Nxe2 {+28.49/18 0.098s} Ke6 {-27.21/15 0.10s} 58. Qc8+ {+29.02/15 0.073s}
Kd6 {-61.11/17 0.10s} 59. Qxb7 {+61.47/18 0.094s} c3 {-60.23/17 0.099s}
60. Nxc3 {+65.00/18 0.067s} f5 {-65.42/16 0.081s} 61. Qxa6 {+71.24/18 0.073s}
f4 {-M38/17 0.12s} 62. Kg4 {+319.86/17 0.080s} f3 {-M22/16 0.099s}
63. Kxf3 {+319.91/19 0.070s} Kc7 {-M14/18 0.032s} 64. Ne4 {+319.93/21 0.074s}
Kd7 {-M12/22 0.039s} 65. Qb7+ {+319.94/24 0.071s} Ke6 {-M10/24 0.045s}
66. Kf4 {+319.96/36 0.12s} c5 {-M6/130 0.045s} 67. Ng5+ {+319.97/245 0.072s}
Kd6 {-M4/245 0.012s} 68. Kf5 {+319.98/245 0.040s} c4 {-M2/1 0s}
69. Ne4# {+319.99/245 0.032s, White mates} 1-0
[/pgn]