B4dT0bi / texel

Texel is a UCI Chess Engine written by Peter Österlund
GNU General Public License v3.0
5 stars 1 forks source link

When ussing gaviota tablebases and movetime only outputs first two moves of pv #1

Closed fonkap closed 7 years ago

fonkap commented 7 years ago

But if you use instead go depth, full pv is printed. Is this the expected behaviour? I am using Texel 1.06

Minimal example (only kqkr.gtb.cp4 is needed):

using movetime

setoption name GaviotaTbPath value tablebases
position fen 8/8/8/8/4qRK1/8/3k4/8 b - - 0 78
go movetime 50
info depth 1
info depth 1 score cp 591 time 10 nodes 14 nps 1400 pv e4b1
info depth 1 score cp 592 time 13 nodes 29 nps 2230 pv e4h1
info depth 1 score cp 598 time 15 nodes 128 nps 8533 pv e4e2 g4g5 e2e7
info depth 1 score cp 608 time 18 nodes 160 nps 8888 pv e4d3
info depth 1 score cp 619 time 21 nodes 161 nps 7666 pv e4e3
info depth 2
info depth 2 score mate 28 lowerbound time 25 nodes 407 nps 16280 tbhits 1 pv e4e3
info depth 2 score mate 28 time 27 nodes 408 nps 15111 tbhits 1 pv e4e3
info depth 2 score mate 27 lowerbound time 30 nodes 409 nps 13633 tbhits 2 pv e4e5 f4f2
info depth 2 score mate 27 time 32 nodes 410 nps 12812 tbhits 2 pv e4e5 f4f2
info depth 2 score mate 22 lowerbound time 35 nodes 413 nps 11799 tbhits 5 pv e4g6 g4h4
info depth 2 score mate 22 time 37 nodes 414 nps 11189 tbhits 5 pv e4g6 g4h4
info depth 3
info depth 3 score mate 22 time 40 nodes 443 nps 11075 tbhits 34 pv e4g6 g4h4
info depth 4
info depth 4 score mate 22 time 43 nodes 476 nps 11069 tbhits 41 pv e4g6 g4h4
info depth 5
info depth 5 score mate 22 time 46 nodes 509 nps 11065 tbhits 74 pv e4g6 g4h4
info depth 6
info nodes 542 nps 10840 tbhits 106 time 50
bestmove e4g6 ponder g4h4_

using depth

setoption name GaviotaTbPath value tablebases
position fen 8/8/8/8/4qRK1/8/3k4/8 b - - 0 78
go depth 2
info depth 1
info depth 1 score cp 591 time 10 nodes 14 nps 1400 pv e4b1
info depth 1 score cp 592 time 13 nodes 29 nps 2230 pv e4h1
info depth 1 score cp 598 time 15 nodes 128 nps 8533 pv e4e2 g4g5 e2e7
info depth 1 score cp 608 time 18 nodes 160 nps 8888 pv e4d3
info depth 1 score cp 619 time 21 nodes 161 nps 7666 pv e4e3
info depth 2
info depth 2 score mate 28 lowerbound time 47 nodes 407 nps 8659 tbhits 1 pv e4e3 f4f5 e3g1 g4f4 g1d4 f4g5 d2e3 f5f6 d4e5 g5g6 e3e4 g6f7 e5c7 f7e6 c7g
7 f6f1 g7g4 e6d6 g4g3 d6e7 g3h4 e7f7 e4e5 f1a1 h4b4 f7g6 b4c3 a1g1 c3d3 g6f7 e5f5 g1e1 d3b3 f7e8 f5f6 e1f1 f6e6 f1e1 e6d6 e8f8 b3f3 f8g7 f3c3 g7g6 c3e
1 g6f5 e1h4 f5g6 d6e6 g6g7 h4g3 g7h6 e6f6 h6h5 g3h3
info depth 2 score mate 28 time 66 nodes 408 nps 6181 tbhits 1 pv e4e3 f4f5 e3g1 g4f4 g1d4 f4g5 d2e3 f5f6 d4e5 g5g6 e3e4 g6f7 e5c7 f7e6 c7g7 f6f1 g7g4
 e6d6 g4g3 d6e7 g3h4 e7f7 e4e5 f1a1 h4b4 f7g6 b4c3 a1g1 c3d3 g6f7 e5f5 g1e1 d3b3 f7e8 f5f6 e1f1 f6e6 f1e1 e6d6 e8f8 b3f3 f8g7 f3c3 g7g6 c3e1 g6f5 e1h4
 f5g6 d6e6 g6g7 h4g3 g7h6 e6f6 h6h5 g3h3
info depth 2 score mate 27 lowerbound time 79 nodes 409 nps 5177 tbhits 2 pv e4e5 f4f5 e5d6 f5f3 d2e2 f3g3 d6e5 g4h4 e5f4 h4h3 f4e4 g3g2 e2e3 g2g3 e3f
2 g3g5 e4e6 h3h4 f2e3 g5a5 e6c4 h4g5 e3e4 g5g6 c4c6 g6g5 c6d7 g5g6 d7d6 g6h5 e4f4 a5a4 f4f5 a4a5 f5f6 a5b5 d6d1 h5h4 d1a4 b5b4 a4b4 h4h3 b4b1 h3g2 b1e
1 g2h2 f6e5 h2g2 e5f4 g2h2 f4f3 h2h3 e1h1
info depth 2 score mate 27 time 90 nodes 410 nps 4555 tbhits 2 pv e4e5 f4f5 e5d6 f5f3 d2e2 f3g3 d6e5 g4h4 e5f4 h4h3 f4e4 g3g2 e2e3 g2g3 e3f2 g3g5 e4e6
 h3h4 f2e3 g5a5 e6c4 h4g5 e3e4 g5g6 c4c6 g6g5 c6d7 g5g6 d7d6 g6h5 e4f4 a5a4 f4f5 a4a5 f5f6 a5b5 d6d1 h5h4 d1a4 b5b4 a4b4 h4h3 b4b1 h3g2 b1e1 g2h2 f6e5
 h2g2 e5f4 g2h2 f4f3 h2h3 e1h1
info depth 2 score mate 22 lowerbound time 127 nodes 413 nps 3251 tbhits 5 pv e4g6 g4f3 d2d3 f3f2 g6h6 f4f3 d3e4 f2g3 h6d2 f3f1 d2d3 g3g2 d3e2 f1f2 e2
g4 g2h2 e4e3 f2f1 g4g5 h2h3 e3e2 f1a1 g5h6 h3g3 h6g7 g3f4 g7a1 f4f5 a1c1 f5e5 c1c6 e5d4 c6d6 d4c3 d6f4 c3b2 f4b4 b2a1 e2d1 a1a2 d1c1 a2a1 b4b1
info depth 2 score mate 22 time 142 nodes 414 nps 2915 tbhits 5 pv e4g6 g4f3 d2d3 f3f2 g6h6 f4f3 d3e4 f2g3 h6d2 f3f1 d2d3 g3g2 d3e2 f1f2 e2g4 g2h2 e4e
3 f2f1 g4g5 h2h3 e3e2 f1a1 g5h6 h3g3 h6g7 g3f4 g7a1 f4f5 a1c1 f5e5 c1c6 e5d4 c6d6 d4c3 d6f4 c3b2 f4b4 b2a1 e2d1 a1a2 d1c1 a2a1 b4b1
info nodes 442 nps 1529 tbhits 33 time 289
bestmove e4g6 ponder g4h4

Thanks in advance.

peterosterlund2 commented 7 years ago

This is in fact expected behavior. In timed games texel does not spend time on things that do not improve its winning chances. It is possible (but unlikely) that looking up a very long PV in the tablebases could make texel lose on time in very fast games.

fonkap commented 7 years ago

Thanks for your response Peter, I agree with you but there is yet somthing I don't fully understand. If you want just the strongest move, you could simply set MultiPV = 1 or AnalyseMode = false, am I missing something?

peterosterlund2 commented 7 years ago

I'm not sure I understand your question, but a chess GUI will typically set MultiPV = 1 and AnalyseMode = false when playing a game, which in texel's case causes the TB PV lookup to be disabled.

fonkap commented 7 years ago

Sorry it is my fault, I wrote the issue some time ago and I mixed my mind... Now I understand your first response, I think this issue is fully answered and can be closed. Thank you :)