Is this a bug in Crafty 24.0 or...

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Is this a bug in Crafty 24.0 or...

Post by zullil »

bob wrote: Finding Nxe6 after 70K nodes is not hard. But it introduces a measure of speculation that can be dangerous, because in 70K nodes there is NO way to see the ultimate win of material. You have to give big bonuses for the various pins, king can't castle, etc.

Here's a good test to try:

take that position with one of the above programs (Rybka, etc) and look at the difference in score between Nxe6 and its second choice (perhaps use multi-PV). I just tried this in Crafty and the difference between the best move and Nxe6 is minuscule after a short search. The interesting question is, when does a program actually see it winning material. It takes Crafty to ply=20 (which is not very long). So not playing it at earlier plies is not what I would call a bug, I would call it just a circumstance. Many programs make the right move but for the wrong reason (make it accidentally). That doesn't always win games.
Latest SF seems to see that Nxe6 is much better than second best move at depth 4, in a fraction of a second ...

Code: Select all

louis@LZsT5610:~/Documents/Chess/Stockfish/src$ ./stockfish 
Stockfish 120614 64 SSE4.2 by Tord Romstad, Marco Costalba and Joona Kiiski
setoption name Threads value 1
setoption name Hash value 256
position fen rq2k2r/3n1ppp/p2bpnb1/8/Np1N4/1B3PP1/PP2Q2P/R1BR2K1 w kq - 1 16 
setoption name MultiPV value 2
isready
readyok
go depth 25
info depth 1 seldepth 1 score cp 72 nodes 184 nps 61333 time 3 multipv 1 pv d4c6
info depth 1 seldepth 1 score cp 44 nodes 184 nps 61333 time 3 multipv 2 pv c1g5
info depth 2 seldepth 2 score cp 63 nodes 1188 nps 132000 time 9 multipv 1 pv d4c6 b8b5
info depth 2 seldepth 2 score cp 21 nodes 1188 nps 132000 time 9 multipv 2 pv d4e6 f7e6 e2e6 d6e7
info depth 3 seldepth 4 score cp 21 nodes 1699 nps 141583 time 12 multipv 1 pv d4e6 f7e6 e2e6 d6e7
info depth 3 seldepth 4 score cp -9 nodes 1699 nps 141583 time 12 multipv 2 pv d4c6 b8b5 e2b5 a6b5 d1d6 b5a4
info depth 4 seldepth 6 score cp 220 nodes 5561 nps 205962 time 27 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6
info depth 4 seldepth 6 score cp -9 nodes 5561 nps 205962 time 27 multipv 2 pv d4c6 b8b5 e2b5 a6b5 d1d6 b5a4
info depth 5 seldepth 7 score cp 187 nodes 8495 nps 257424 time 33 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8
info depth 5 seldepth 7 score cp -17 nodes 8495 nps 257424 time 33 multipv 2 pv d4c6 b8c7 e2d2 c7c6 d2d6 c6f3 d6b4
info depth 6 seldepth 7 score cp 238 nodes 10936 nps 295567 time 37 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3
info depth 6 seldepth 7 score cp -17 nodes 10936 nps 295567 time 37 multipv 2 pv d4c6 b8c7 e2d2 c7c6 d2d6 c6f3 d6b4
info depth 7 seldepth 8 score cp 229 nodes 22498 nps 362870 time 62 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 b8f8
info depth 7 seldepth 8 score cp -14 nodes 22498 nps 362870 time 62 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 b8a7 g1g2
info depth 8 seldepth 9 score cp 213 nodes 29102 nps 404194 time 72 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 h6f4
info depth 8 seldepth 9 score cp -43 nodes 29102 nps 404194 time 72 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 d7e5
info depth 9 seldepth 14 score cp 177 nodes 62645 nps 450683 time 139 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 a4b6 e5f3 g1h1 f8g7 e3f3 g7h6 f3a8 b8a8 b6a8
info depth 9 seldepth 14 score cp -32 nodes 62645 nps 450683 time 139 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 d7e5 g1g2
info depth 10 seldepth 18 score cp 212 nodes 97931 nps 502210 time 195 multipv 1 pv d4e6 f7e6 e2e6 d6e7 d1e1 b8d8 c1f4 a6a5 f4d6 f6g8 a1c1
info depth 10 seldepth 18 score cp -22 nodes 97931 nps 502210 time 195 multipv 2 pv b3e6 e8g8 e6d7 f6d7 d4c6 b8c7 e2d2 c7c6 d2d
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Is this a bug in Crafty 24.0 or...

Post by zullil »

zullil wrote:
bob wrote: Finding Nxe6 after 70K nodes is not hard. But it introduces a measure of speculation that can be dangerous, because in 70K nodes there is NO way to see the ultimate win of material. You have to give big bonuses for the various pins, king can't castle, etc.

Here's a good test to try:

take that position with one of the above programs (Rybka, etc) and look at the difference in score between Nxe6 and its second choice (perhaps use multi-PV). I just tried this in Crafty and the difference between the best move and Nxe6 is minuscule after a short search. The interesting question is, when does a program actually see it winning material. It takes Crafty to ply=20 (which is not very long). So not playing it at earlier plies is not what I would call a bug, I would call it just a circumstance. Many programs make the right move but for the wrong reason (make it accidentally). That doesn't always win games.
Latest SF seems to see that Nxe6 is much better than second best move at depth 4, in a fraction of a second ...

Code: Select all

louis@LZsT5610:~/Documents/Chess/Stockfish/src$ ./stockfish 
Stockfish 120614 64 SSE4.2 by Tord Romstad, Marco Costalba and Joona Kiiski
setoption name Threads value 1
setoption name Hash value 256
position fen rq2k2r/3n1ppp/p2bpnb1/8/Np1N4/1B3PP1/PP2Q2P/R1BR2K1 w kq - 1 16 
setoption name MultiPV value 2
isready
readyok
go depth 25
info depth 1 seldepth 1 score cp 72 nodes 184 nps 61333 time 3 multipv 1 pv d4c6
info depth 1 seldepth 1 score cp 44 nodes 184 nps 61333 time 3 multipv 2 pv c1g5
info depth 2 seldepth 2 score cp 63 nodes 1188 nps 132000 time 9 multipv 1 pv d4c6 b8b5
info depth 2 seldepth 2 score cp 21 nodes 1188 nps 132000 time 9 multipv 2 pv d4e6 f7e6 e2e6 d6e7
info depth 3 seldepth 4 score cp 21 nodes 1699 nps 141583 time 12 multipv 1 pv d4e6 f7e6 e2e6 d6e7
info depth 3 seldepth 4 score cp -9 nodes 1699 nps 141583 time 12 multipv 2 pv d4c6 b8b5 e2b5 a6b5 d1d6 b5a4
info depth 4 seldepth 6 score cp 220 nodes 5561 nps 205962 time 27 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6
info depth 4 seldepth 6 score cp -9 nodes 5561 nps 205962 time 27 multipv 2 pv d4c6 b8b5 e2b5 a6b5 d1d6 b5a4
info depth 5 seldepth 7 score cp 187 nodes 8495 nps 257424 time 33 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8
info depth 5 seldepth 7 score cp -17 nodes 8495 nps 257424 time 33 multipv 2 pv d4c6 b8c7 e2d2 c7c6 d2d6 c6f3 d6b4
info depth 6 seldepth 7 score cp 238 nodes 10936 nps 295567 time 37 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3
info depth 6 seldepth 7 score cp -17 nodes 10936 nps 295567 time 37 multipv 2 pv d4c6 b8c7 e2d2 c7c6 d2d6 c6f3 d6b4
info depth 7 seldepth 8 score cp 229 nodes 22498 nps 362870 time 62 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 b8f8
info depth 7 seldepth 8 score cp -14 nodes 22498 nps 362870 time 62 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 b8a7 g1g2
info depth 8 seldepth 9 score cp 213 nodes 29102 nps 404194 time 72 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 h6f4
info depth 8 seldepth 9 score cp -43 nodes 29102 nps 404194 time 72 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 d7e5
info depth 9 seldepth 14 score cp 177 nodes 62645 nps 450683 time 139 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 a4b6 e5f3 g1h1 f8g7 e3f3 g7h6 f3a8 b8a8 b6a8
info depth 9 seldepth 14 score cp -32 nodes 62645 nps 450683 time 139 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 d7e5 g1g2
info depth 10 seldepth 18 score cp 212 nodes 97931 nps 502210 time 195 multipv 1 pv d4e6 f7e6 e2e6 d6e7 d1e1 b8d8 c1f4 a6a5 f4d6 f6g8 a1c1
info depth 10 seldepth 18 score cp -22 nodes 97931 nps 502210 time 195 multipv 2 pv b3e6 e8g8 e6d7 f6d7 d4c6 b8c7 e2d2 c7c6 d2d
Here's the latest SF's search output to depth 20, using one thread and MultiPV=1:

Code: Select all

louis@LZsT5610:~/Documents/Chess/Stockfish/src$ ./stockfish 
Stockfish 120614 64 SSE4.2 by Tord Romstad, Marco Costalba and Joona Kiiski
setoption name Threads value 1
setoption name Hash value 128
position fen rq2k2r/3n1ppp/p2bpnb1/8/Np1N4/1B3PP1/PP2Q2P/R1BR2K1 w kq - 1 16
isready
readyok
go depth 20
info depth 1 seldepth 1 score cp 72 nodes 111 nps 37000 time 3 multipv 1 pv d4c6
info depth 2 seldepth 2 score cp 63 nodes 574 nps 95666 time 6 multipv 1 pv d4c6 b8b5
info depth 3 seldepth 4 score cp 21 nodes 1121 nps 124555 time 9 multipv 1 pv d4e6 f7e6 e2e6 d6e7
info depth 4 seldepth 5 score cp 220 nodes 3192 nps 152000 time 21 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6
info depth 5 seldepth 6 score cp 187 nodes 4303 nps 179291 time 24 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8
info depth 6 seldepth 7 score cp 238 nodes 6152 nps 219714 time 28 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3
info depth 7 seldepth 8 score cp 229 nodes 7769 nps 250612 time 31 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 b8f8
info depth 8 seldepth 9 score cp 213 nodes 10191 nps 291171 time 35 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 h6f4
info depth 9 seldepth 13 score cp 152 nodes 19595 nps 376826 time 52 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 h6f4 b8a7 a4b6 e5f3 e3f3 a7b6 f4e3
info depth 10 seldepth 17 score cp 224 nodes 51094 nps 486609 time 105 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 g1g2 d6f8 h6f4 f6g4 d1d7 g8g7 f3g4
info depth 11 seldepth 17 score cp 234 nodes 69252 nps 536837 time 129 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 g1g2 d6f8 h6f4 f6g4 g7f5 g6f5 f3g4
info depth 12 seldepth 19 score cp 243 nodes 105020 nps 625119 time 168 multipv 1 pv d4e6 d6e5 e6g7 e8f8 c1h6 f8g8 a1c1 b8a7 g1h1 f6g4 g7f5 g4h6 d1d7 a7d7 f5h6 g8g7 e2e5 g7h6
info depth 13 seldepth 23 score cp 243 nodes 171917 nps 764075 time 225 multipv 1 pv d4e6 f7e6 e2e6 d6e7 d1e1 b8d8 c1f4 f6g8 a1c1 a8c8 c1c8 d8c8 f4d6 c8d8 d6b4 a6a5 b4d6
info depth 14 seldepth 24 score cp 253 nodes 224343 nps 840235 time 267 multipv 1 pv d4e6 f7e6 e2e6 d6e7 d1e1 b8d8 c1f4 f6g8 a1c1 a8c8 c1d1 a6a5 f4e5 g8f6 e5d6 f6g8 d6c5 c8c7 f3f4
info depth 15 seldepth 27 score cp 251 nodes 444748 nps 1041564 time 427 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 g1g2 d6f8 h6f4 f8g7 f4e5 b8b5 e2b5 a6b5 a4c5 f6g4 e5f4 g4e5
info depth 16 seldepth 27 score cp 257 nodes 594312 nps 1119231 time 531 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 g1g2 d6f8 h6f4 f8d6 d1d6 b8d6 f4e5 d6e7 g7e6 f7e6 a4c5 g6f5 e2d2 h7h6 d2b4 g8h7 g3g4
info depth 17 seldepth 27 score cp 251 nodes 777795 nps 1176694 time 661 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 g1g2 d6f8 h6f4 f8g7 f4e5 b8b5 e2b5 a6b5 a4c5 f6g4 e5f4 g4e5 b3d5 a8d8 a1c1 h7h5
info depth 18 seldepth 31 score cp 237 nodes 1472091 nps 1296996 time 1135 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 g1g2 d6f8 h6f4 f8g7 f4e5 b8b5 e2b5 a6b5 a4b6 a8e8 d1e1 f6h5 f3f4 g7e5 f4e5 g8g7 b6d5 e8d8 a1d1 h8e8 d5b4 d8d1 b3d1
info depth 19 seldepth 31 score cp 237 nodes 1592396 nps 1300977 time 1224 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 g1g2 d6f8 h6f4 f8g7 f4e5 b8b5 e2b5 a6b5 a4b6 a8e8 d1e1 f6h5 f3f4 g7e5 f4e5 g8g7 b6d5 e8d8 a1d1 h8e8 d5b4 d8d1 b3d1
info depth 20 seldepth 34 score cp 238 nodes 2537896 nps 1346363 time 1885 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 g1g2 d6f8 h6f4 f8g7 f4e5 b8b5 e2b5 a6b5 a4b6 a8e8 d1e1 f6h5 f3f4 h5f6 a1d1 h7h5 b6d5 f6g4 d5c7 e8b8 c7a6 g7e5 e1e5 g4e5 a6b8
info nodes 2537896 time 1885
bestmove d4e6 ponder d7e5
zamar
Posts: 613
Joined: Sun Jan 18, 2009 7:03 am

Re: Is this a bug in Crafty 24.0 or...

Post by zamar »

SF is famous for its speculative play, so I'm not surprised.

However in some positions this of course backfires.

zullil wrote:
bob wrote: Finding Nxe6 after 70K nodes is not hard. But it introduces a measure of speculation that can be dangerous, because in 70K nodes there is NO way to see the ultimate win of material. You have to give big bonuses for the various pins, king can't castle, etc.

Here's a good test to try:

take that position with one of the above programs (Rybka, etc) and look at the difference in score between Nxe6 and its second choice (perhaps use multi-PV). I just tried this in Crafty and the difference between the best move and Nxe6 is minuscule after a short search. The interesting question is, when does a program actually see it winning material. It takes Crafty to ply=20 (which is not very long). So not playing it at earlier plies is not what I would call a bug, I would call it just a circumstance. Many programs make the right move but for the wrong reason (make it accidentally). That doesn't always win games.
Latest SF seems to see that Nxe6 is much better than second best move at depth 4, in a fraction of a second ...

Code: Select all

louis@LZsT5610:~/Documents/Chess/Stockfish/src$ ./stockfish 
Stockfish 120614 64 SSE4.2 by Tord Romstad, Marco Costalba and Joona Kiiski
setoption name Threads value 1
setoption name Hash value 256
position fen rq2k2r/3n1ppp/p2bpnb1/8/Np1N4/1B3PP1/PP2Q2P/R1BR2K1 w kq - 1 16 
setoption name MultiPV value 2
isready
readyok
go depth 25
info depth 1 seldepth 1 score cp 72 nodes 184 nps 61333 time 3 multipv 1 pv d4c6
info depth 1 seldepth 1 score cp 44 nodes 184 nps 61333 time 3 multipv 2 pv c1g5
info depth 2 seldepth 2 score cp 63 nodes 1188 nps 132000 time 9 multipv 1 pv d4c6 b8b5
info depth 2 seldepth 2 score cp 21 nodes 1188 nps 132000 time 9 multipv 2 pv d4e6 f7e6 e2e6 d6e7
info depth 3 seldepth 4 score cp 21 nodes 1699 nps 141583 time 12 multipv 1 pv d4e6 f7e6 e2e6 d6e7
info depth 3 seldepth 4 score cp -9 nodes 1699 nps 141583 time 12 multipv 2 pv d4c6 b8b5 e2b5 a6b5 d1d6 b5a4
info depth 4 seldepth 6 score cp 220 nodes 5561 nps 205962 time 27 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6
info depth 4 seldepth 6 score cp -9 nodes 5561 nps 205962 time 27 multipv 2 pv d4c6 b8b5 e2b5 a6b5 d1d6 b5a4
info depth 5 seldepth 7 score cp 187 nodes 8495 nps 257424 time 33 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8
info depth 5 seldepth 7 score cp -17 nodes 8495 nps 257424 time 33 multipv 2 pv d4c6 b8c7 e2d2 c7c6 d2d6 c6f3 d6b4
info depth 6 seldepth 7 score cp 238 nodes 10936 nps 295567 time 37 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3
info depth 6 seldepth 7 score cp -17 nodes 10936 nps 295567 time 37 multipv 2 pv d4c6 b8c7 e2d2 c7c6 d2d6 c6f3 d6b4
info depth 7 seldepth 8 score cp 229 nodes 22498 nps 362870 time 62 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 b8f8
info depth 7 seldepth 8 score cp -14 nodes 22498 nps 362870 time 62 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 b8a7 g1g2
info depth 8 seldepth 9 score cp 213 nodes 29102 nps 404194 time 72 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 h6f4
info depth 8 seldepth 9 score cp -43 nodes 29102 nps 404194 time 72 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 d7e5
info depth 9 seldepth 14 score cp 177 nodes 62645 nps 450683 time 139 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 a4b6 e5f3 g1h1 f8g7 e3f3 g7h6 f3a8 b8a8 b6a8
info depth 9 seldepth 14 score cp -32 nodes 62645 nps 450683 time 139 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 d7e5 g1g2
info depth 10 seldepth 18 score cp 212 nodes 97931 nps 502210 time 195 multipv 1 pv d4e6 f7e6 e2e6 d6e7 d1e1 b8d8 c1f4 a6a5 f4d6 f6g8 a1c1
info depth 10 seldepth 18 score cp -22 nodes 97931 nps 502210 time 195 multipv 2 pv b3e6 e8g8 e6d7 f6d7 d4c6 b8c7 e2d2 c7c6 d2d
Joona Kiiski
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: Is this a bug in Crafty 24.0 or...

Post by michiguel »

zullil wrote:
bob wrote: Finding Nxe6 after 70K nodes is not hard. But it introduces a measure of speculation that can be dangerous, because in 70K nodes there is NO way to see the ultimate win of material. You have to give big bonuses for the various pins, king can't castle, etc.

Here's a good test to try:

take that position with one of the above programs (Rybka, etc) and look at the difference in score between Nxe6 and its second choice (perhaps use multi-PV). I just tried this in Crafty and the difference between the best move and Nxe6 is minuscule after a short search. The interesting question is, when does a program actually see it winning material. It takes Crafty to ply=20 (which is not very long). So not playing it at earlier plies is not what I would call a bug, I would call it just a circumstance. Many programs make the right move but for the wrong reason (make it accidentally). That doesn't always win games.
Latest SF seems to see that Nxe6 is much better than second best move at depth 4, in a fraction of a second ...

Code: Select all

louis@LZsT5610:~/Documents/Chess/Stockfish/src$ ./stockfish 
Stockfish 120614 64 SSE4.2 by Tord Romstad, Marco Costalba and Joona Kiiski
setoption name Threads value 1
setoption name Hash value 256
position fen rq2k2r/3n1ppp/p2bpnb1/8/Np1N4/1B3PP1/PP2Q2P/R1BR2K1 w kq - 1 16 
setoption name MultiPV value 2
isready
readyok
go depth 25
info depth 1 seldepth 1 score cp 72 nodes 184 nps 61333 time 3 multipv 1 pv d4c6
info depth 1 seldepth 1 score cp 44 nodes 184 nps 61333 time 3 multipv 2 pv c1g5
info depth 2 seldepth 2 score cp 63 nodes 1188 nps 132000 time 9 multipv 1 pv d4c6 b8b5
info depth 2 seldepth 2 score cp 21 nodes 1188 nps 132000 time 9 multipv 2 pv d4e6 f7e6 e2e6 d6e7
info depth 3 seldepth 4 score cp 21 nodes 1699 nps 141583 time 12 multipv 1 pv d4e6 f7e6 e2e6 d6e7
info depth 3 seldepth 4 score cp -9 nodes 1699 nps 141583 time 12 multipv 2 pv d4c6 b8b5 e2b5 a6b5 d1d6 b5a4
info depth 4 seldepth 6 score cp 220 nodes 5561 nps 205962 time 27 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6
info depth 4 seldepth 6 score cp -9 nodes 5561 nps 205962 time 27 multipv 2 pv d4c6 b8b5 e2b5 a6b5 d1d6 b5a4
info depth 5 seldepth 7 score cp 187 nodes 8495 nps 257424 time 33 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8
info depth 5 seldepth 7 score cp -17 nodes 8495 nps 257424 time 33 multipv 2 pv d4c6 b8c7 e2d2 c7c6 d2d6 c6f3 d6b4
info depth 6 seldepth 7 score cp 238 nodes 10936 nps 295567 time 37 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3
info depth 6 seldepth 7 score cp -17 nodes 10936 nps 295567 time 37 multipv 2 pv d4c6 b8c7 e2d2 c7c6 d2d6 c6f3 d6b4
info depth 7 seldepth 8 score cp 229 nodes 22498 nps 362870 time 62 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 b8f8
info depth 7 seldepth 8 score cp -14 nodes 22498 nps 362870 time 62 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 b8a7 g1g2
info depth 8 seldepth 9 score cp 213 nodes 29102 nps 404194 time 72 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 h6f4
info depth 8 seldepth 9 score cp -43 nodes 29102 nps 404194 time 72 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 d7e5
info depth 9 seldepth 14 score cp 177 nodes 62645 nps 450683 time 139 multipv 1 pv d4e6 d7e5 e6g7 e8f8 c1h6 f8g8 e2e3 d6f8 a4b6 e5f3 g1h1 f8g7 e3f3 g7h6 f3a8 b8a8 b6a8
info depth 9 seldepth 14 score cp -32 nodes 62645 nps 450683 time 139 multipv 2 pv b3e6 e8g8 d4f5 f8e8 f5d6 e8e6 e2d2 d7e5 g1g2
info depth 10 seldepth 18 score cp 212 nodes 97931 nps 502210 time 195 multipv 1 pv d4e6 f7e6 e2e6 d6e7 d1e1 b8d8 c1f4 a6a5 f4d6 f6g8 a1c1
info depth 10 seldepth 18 score cp -22 nodes 97931 nps 502210 time 195 multipv 2 pv b3e6 e8g8 e6d7 f6d7 d4c6 b8c7 e2d2 c7c6 d2d

Gaviota needs two plies (201 nodes) to choose Nxe6. Of course, this is not tactics but speculative positional evaluation.

Code: Select all

        65   1:      0.0    +0.64  9.Nc6
        87   2       0.0    -0.18  9.Nc6 Qb5
       201   2:      0.0    +0.34  9.Nxe6 fxe6 10.Bxe6
       284   3       0.0    +0.34  9.Nxe6 fxe6 10.Bxe6
       349   3:      0.0    +0.34  9.Nxe6 fxe6 10.Bxe6
       609   4       0.0    +0.37  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Bf4 Qa7+
                                   12.Kg2
       710   4:      0.0    +0.37  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Bf4 Qa7+
                                   12.Kg2
      1513   5       0.0    +0.16  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Bf4 Qb7
      2061   5:      0.0    +0.16  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Bf4 Qb7
      3781   6       0.0      :-)  9.Nxe6
      4568   6       0.0    +0.65  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qa7+
                                   12.Kg2 Ng8
      4796   6:      0.0    +0.65  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qa7+
                                   12.Kg2 Ng8
      7963   7       0.0    +0.95  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qa7+
                                   12.Kg2 Nc5 13.Qc6+ Ncd7
      8313   7:      0.0    +0.95  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qa7+
                                   12.Kg2 Nc5 13.Qc6+ Ncd7
      9810   8       0.0      :-(  9.Nxe6
     11019   8       0.0      :-(  
     14099   8       0.0    +0.46  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qa7+
                                   12.Kf1 Nc5 13.Qc6+ Kd8 14.Nb6 Nxb3
                                   15.axb3
     15084   8:      0.0    +0.46  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qa7+
                                   12.Kf1 Nc5 13.Qc6+ Kd8 14.Nb6 Nxb3
                                   15.axb3
     22480   9       0.0    +0.84  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qd8 [>]
     24051   9:      0.0    +0.84  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qd8 [>]
     43345  10       0.1      :-)  9.Nxe6
     79937  10       0.1    +1.75  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qd8 [>]
     82113  10:      0.1    +1.75  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qd8 [>]
    102677  11       0.2    +1.47  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qd8
                                   12.Bf4 Ra7 13.Rac1 Kf8 14.Bd6 Nb8
    109164  11:      0.2    +1.47  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qd8
                                   12.Bf4 Ra7 13.Rac1 Kf8 14.Bd6 Nb8
    152576  12       0.2    +1.53  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qd8
                                   12.Bf4 Ra7 13.Rac1 Kf8 14.Bd6 Nb8
                                   15.Qe3
    163358  12:      0.3    +1.53  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qd8
                                   12.Bf4 Ra7 13.Rac1 Kf8 14.Bd6 Nb8
                                   15.Qe3
    279226  13       0.4    +1.57  9.Nxe6 fxe6 10.Qxe6+ Be7 11.Re1 Qd8
                                   12.Bf4 Ra7 13.Rac1 Kf8 14.Bd6 Nb6
                                   15.Bxe7+ Rxe7 16.Qxb6 Qxb6+ 17.Nxb6
In multiPV the difference with the next one is substantial from the beginning. Interestingly, the second one is Bxe6

Code: Select all

( 1)        233   2:      0.0    +0.34  9.Nxe6 fxe6 10.Bxe6
( 2)        322   2:      0.0    -0.10  9.Bxe6 fxe6 10.Nxe6
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Is this a bug in Crafty 24.0 or...

Post by bob »

mvk wrote:
Zenmastur wrote: Rybka 2.3.2a............................ 7K nodes
Ivanhoe B46fb x64..................767K nodes
Critter 1.4a 64-bit SSE4.......... 77K nodes
OpenCritter v1.1.37................ 52K nodes
Gull 3 x64............................... 13K nodes
Komodo 5 64-bit..................... 82K nodes
Houdini 1.5a x64.................... 24K nodes
Stockfish 290314 64 SSE4.2.. 6K nodes
My program finds Nxe6 it after 70 nodes (first ply), and sticks with it. But as bob pointed out, one also has to consider the difference with the second move. For me that is 0.056 pawn. That means that a slightly different tuning can make the move very hard to find.
I was looking carefully, but more out of curiosity. Found an interesting thing (relative to crafty).

After Nxe6 fxe6 Qxe6 the score is +.74 (good for white). But after black plays Be7 to block the check, the score goes significantly negative. After some looking, it is the result of the bishop getting off of the d-file which now lets the white rook attack d7 (square adjacent to black king). I don't think this is reasonable. Tracy redid a lot of this a year or two ago, but I think this is a side-effect that we did not plan on. Got a bit of tuning to do as clearly moving the black bishop from d6 to e7 is NOT worth a pawn in terms of evaluation... and I am not searching tactically beyond that point for this analysis, so this is raw positional scoring that looks wrong.

More later but I suspect this is a bigger problem than originally suspected...
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Is this a bug in Crafty 24.0 or...

Post by zullil »

bob wrote:
mvk wrote:
Zenmastur wrote: Rybka 2.3.2a............................ 7K nodes
Ivanhoe B46fb x64..................767K nodes
Critter 1.4a 64-bit SSE4.......... 77K nodes
OpenCritter v1.1.37................ 52K nodes
Gull 3 x64............................... 13K nodes
Komodo 5 64-bit..................... 82K nodes
Houdini 1.5a x64.................... 24K nodes
Stockfish 290314 64 SSE4.2.. 6K nodes
My program finds Nxe6 it after 70 nodes (first ply), and sticks with it. But as bob pointed out, one also has to consider the difference with the second move. For me that is 0.056 pawn. That means that a slightly different tuning can make the move very hard to find.
I was looking carefully, but more out of curiosity. Found an interesting thing (relative to crafty).

After Nxe6 fxe6 Qxe6 the score is +.74 (good for white). But after black plays Be7 to block the check, the score goes significantly negative. After some looking, it is the result of the bishop getting off of the d-file which now lets the white rook attack d7 (square adjacent to black king). I don't think this is reasonable. Tracy redid a lot of this a year or two ago, but I think this is a side-effect that we did not plan on. Got a bit of tuning to do as clearly moving the black bishop from d6 to e7 is NOT worth a pawn in terms of evaluation... and I am not searching tactically beyond that point for this analysis, so this is raw positional scoring that looks wrong.

More later but I suspect this is a bigger problem than originally suspected...
For those following along at home. Note the large change in the "kings" score:

Code: Select all

Crafty v24.0 (1 cpus)

White(1): ponder off
pondering disabled.
White(1): book off
book file disabled.
White(1): setboard rq2k2r/3n2pp/p2bQnb1/8/Np6/1B3PP1/PP5P/R1BR2K1 b kq - 0 17
Black(1): d

       +---+---+---+---+---+---+---+---+
    8  |<R>|<Q>|   | . |<K>| . |   |<R>|
       +---+---+---+---+---+---+---+---+
    7  | . |   | . |<N>| . |   |<P>|<P>|
       +---+---+---+---+---+---+---+---+
    6  |<P>| . |   |<B>|-Q-|<N>|<B>| . |
       +---+---+---+---+---+---+---+---+
    5  | . |   | . |   | . |   | . |   |
       +---+---+---+---+---+---+---+---+
    4  |-N-|<P>|   | . |   | . |   | . |
       +---+---+---+---+---+---+---+---+
    3  | . |-B-| . |   | . |-P-|-P-|   |
       +---+---+---+---+---+---+---+---+
    2  |-P-|-P-|   | . |   | . |   |-P-|
       +---+---+---+---+---+---+---+---+
    1  |-R-|   |-B-|-R-| . |   |-K-|   |
       +---+---+---+---+---+---+---+---+
         a   b   c   d   e   f   g   h

Black&#40;1&#41;&#58; score
note&#58; scores are for the white side
                        +-----------white----------+-----------black----------+
material.......  -3.18  |    comp     mg      eg   |    comp     mg      eg   |
pawns..........   0.11  |    0.07    0.06    0.31  |    0.04    0.05   -0.03  |
passed pawns...   0.00  |    0.00    0.00    0.00  |    0.00    0.00    0.00  |
knights........  -0.24  |   -0.05   -0.05   -0.05  |   -0.19   -0.19   -0.19  |
bishops........  -0.37  |    0.37    0.36    0.72  |   -0.74   -0.73   -1.09  |
rooks..........   0.65  |    0.45    0.46    0.31  |    0.20    0.20    0.20  |
queens.........   0.16  |    0.12    0.12    0.12  |    0.04    0.04    0.04  |
kings..........   1.27  |   -0.44   -0.45   -0.40  |    1.71    1.78    0.40  |
development....   0.57  |    0.00    0.00    0.00  |    0.57    0.60    0.00  |
pawn races.....   0.00  +--------------------------+--------------------------+
total..........  -1.02
Black&#40;1&#41;&#58; setboard rq2k2r/3nb1pp/p3Qnb1/8/Np6/1B3PP1/PP5P/R1BR2K1 w kq - 1 18
White&#40;1&#41;&#58; d

       +---+---+---+---+---+---+---+---+
    8  |<R>|<Q>|   | . |<K>| . |   |<R>|
       +---+---+---+---+---+---+---+---+
    7  | . |   | . |<N>|<B>|   |<P>|<P>|
       +---+---+---+---+---+---+---+---+
    6  |<P>| . |   | . |-Q-|<N>|<B>| . |
       +---+---+---+---+---+---+---+---+
    5  | . |   | . |   | . |   | . |   |
       +---+---+---+---+---+---+---+---+
    4  |-N-|<P>|   | . |   | . |   | . |
       +---+---+---+---+---+---+---+---+
    3  | . |-B-| . |   | . |-P-|-P-|   |
       +---+---+---+---+---+---+---+---+
    2  |-P-|-P-|   | . |   | . |   |-P-|
       +---+---+---+---+---+---+---+---+
    1  |-R-|   |-B-|-R-| . |   |-K-|   |
       +---+---+---+---+---+---+---+---+
         a   b   c   d   e   f   g   h

White&#40;1&#41;&#58; score
note&#58; scores are for the white side
                        +-----------white----------+-----------black----------+
material.......  -3.08  |    comp     mg      eg   |    comp     mg      eg   |
pawns..........   0.11  |    0.07    0.06    0.31  |    0.04    0.05   -0.03  |
passed pawns...   0.00  |    0.00    0.00    0.00  |    0.00    0.00    0.00  |
knights........  -0.24  |   -0.05   -0.05   -0.05  |   -0.19   -0.19   -0.19  |
bishops........  -0.23  |    0.37    0.36    0.72  |   -0.60   -0.59   -0.95  |
rooks..........   0.69  |    0.49    0.50    0.35  |    0.20    0.20    0.20  |
queens.........   0.16  |    0.12    0.12    0.12  |    0.04    0.04    0.04  |
kings..........   2.75  |   -0.44   -0.45   -0.40  |    3.19    3.34    0.40  |
development....   0.57  |    0.00    0.00    0.00  |    0.57    0.60    0.00  |
pawn races.....   0.00  +--------------------------+--------------------------+
total..........   0.74
Zenmastur
Posts: 919
Joined: Sat May 31, 2014 8:28 am

Re: Is this a bug in Crafty 24.0 or...

Post by Zenmastur »

zullil wrote:
Zenmastur wrote: The point is that it doesn't take 26 plies to win the material back. So why does the engine fail to find the move until 26 plies are reached?

Forrest
You stated in another post that "I've been away from computer chess and chess in general for about 17 years." Many search enhancements have been introduced during that period. My understanding is that many extensions and reductions are now performed, so that at the completion of "depth" N, some root moves have been searched much more deeply than N plies, and perhaps some less than N. It's not just an alpha-beta search with iterative deepening anymore. And then there's the whole issue of multi-threading (which you wisely eliminated from consideration here by using a single core to test)...
Loius, I'm having trouble seeing what point you're trying to make with these comments. A little clarification would be helpful.
zullil wrote: ...
I'm sure Bob can comment more intelligently, but it seems to me that Crafty's behavior here is not the result of a "bug". The engine's "difficulty" finding the move is a consequence of the search design and evaluation parameters, which presumably have been tested to give strong results overall, though not on this one position.
I'm not going to get too hung up on the word(s) used to describe the problem. I'm of the opinion that the intent is to have the program find good moves as fast as possible. Nxe6 is a "good" move in this position. In fact, it might even be the "best" move. i.e. leads to the shortest win possible from this position. I have little doubt that it is a winning move. To that end, I'm conducting a little experiment, call it a pseudo-proof of the position. I would conduct a "true" proof by demonstration but Crafty isn't set up in such a way that it can perform the necessary steps. The first conjecture is that Nxe6 is a forced win for white. The pseudo-proof will consist of a book in which all possible moves by black are marked in such a way that under normal circumstances crafty won't play any of them. I.E. it has already played the line and found it wanting and has backed up a score to that position.
It would, of course, be best if all positions after black moves have mate in "x" scores. I'm not too hopeful I can achieve this simply because the routine that scores the positions isn't performing a true minimax on what it finds. To achieve this would require code changes and maybe even a change in the book structure itself. I'm not quite ready to tackle adding/changing the code just yet, so that will have to wait for another day.

The best way I can think to bring this about using the code, as is, is to construct a pgn file with game stubs that contain all responses to Nxe6. Create a book.bin from this file such that all moves are included. i.e. the command "book.bin create Nxe6reponses.pgn 999 1 0" should do the trick. Use this book to have Crafty play itself using each of the ending positions at least ten times. Take the pgn file with these games in it and make a book.bin from it. I.E. "book.bin create Nxe6games.pgn 50 1 0". This should give us a book with a few thousand position stemming from Nxe6 and all possible black responses. Now, just play tournaments with Crafty playing itself with all games starting at the position after Nxe6. If crafty has an "efficient" learning algorithm it shouldn't be long before it will have marked all positions after black moves as unplayable. I'm not sure if they will be marked as mates or not, you'll have to ask bob if this is possible with the current code, but if it is possible then assuming the time controls will allow a deep enough search you should see mate scores appearing in the book in short order. After a while all the scores will be mate scores if my conjecture is true.

It shouldn't take too much to change Crafty's code to make a "real" proof possible. But, I'm not ready to start on that just yet, I still have considerable catching up to do. In the mean time, I have completed a 100 game tournament as a starter file, created a book and then a 2,000 game tournament that I plan on making into the "main" book I'm going to use this evening. Then with this book in place the games will begin. I suspect that by the end of the weekend I'll have a "pseudo-proof".

The next conjecture to be tested is, "Is there any sequence of moves that leads to black retaining his material advantage to a depth of 26 plies including the first ply 16. Nxe6." I suspect that there is not, but this will have to wait, I think, until I'm competent enough to change the code and create an executable. This may take a while as I have other things on my to do list.

bob wrote: For a search of > 5 seconds, you won't be able to measure the difference between a completely empty cache and one that has been "warmed up" by getting key parts of the program pre-loaded.

Finding Nxe6 after 70K nodes is not hard. But it introduces a measure of speculation that can be dangerous, because in 70K nodes there is NO way to see the ultimate win of material. You have to give big bonuses for the various pins, king can't castle, etc.
Let's avoid all speculation. The question then becomes "At what ply does Crafty (or any of the other programs) "believe" that it is getting it's material back AND can show it with a PV including the moves that regain the material?"
bob wrote:... Here's a good test to try:

take that position with one of the above programs (Rybka, etc) and look at the difference in score between Nxe6 and its second choice (perhaps use multi-PV). I just tried this in Crafty and the difference between the best move and Nxe6 is minuscule after a short search. The interesting question is, when does a program actually see it winning material. It takes Crafty to ply=20 (which is not very long). So not playing it at earlier plies is not what I would call a bug, I would call it just a circumstance. Many programs make the right move but for the wrong reason (make it accidentally). That doesn't always win games.
I agree that if it can't see that it gets it's material back prior to 20 plies, its just a circumstance. If it sees it at 20-plies, as you say, why wait until 26-plies to change the PV?
bob wrote:I was looking carefully, but more out of curiosity. Found an interesting thing (relative to crafty).

After Nxe6 fxe6 Qxe6 the score is +.74 (good for white). But after black plays Be7 to block the check, the score goes significantly negative. After some looking, it is the result of the bishop getting off of the d-file which now lets the white rook attack d7 (square adjacent to black king). I don't think this is reasonable. Tracy redid a lot of this a year or two ago, but I think this is a side-effect that we did not plan on. Got a bit of tuning to do as clearly moving the black bishop from d6 to e7 is NOT worth a pawn in terms of evaluation... and I am not searching tactically beyond that point for this analysis, so this is raw positional scoring that looks wrong.

More later but I suspect this is a bigger problem than originally suspected...
Well after that problem is fixed maybe it will shed further light on the situation.

I notice several people are making claims about how one program or another speculates. I'm not sure that is helpful. The big questions is when does it produce a PV that show its getting the material back or mating the black king. While we may not be a be to see some of the extensions at the end of PV are we can at least make educated guesses as to if the program "really" sees that its getting the material back or not. I don't think that short PV's that don't show this are of much value.

[D]rq2k2r/3n1ppp/p2bpnb1/8/Np1N4/1B3PP1/PP2Q2P/R1BR2K1 w kq - 1 16

16. Nxe6 fxe6 17. Qxe6+ Be7 18. Re1 Qd8 19. Bf4 Ng8
20. Rac1 Rc8 21. Rcd1 a5 22. Be5 Ngf6 23. Bd6 Ng8 24. Bc5 Rc7 25. Nb4
leads to this

[D]3qk1nr/2rnb1pp/1N2Q1b1/p1B5/1p6/1B3PP1/PP5P/3RR1K1 b k - 7 25

The best the computer can come up with is:
25. ... Kf8 26. Rxd7 Bxc5+ 27. Kg2 Qe8 28. Rxc7 Qxe6 29. Rxe6 Be8 30. Rc8 g6 31. Rexe8+ Kg7 32. Rxc5 h5 33. Rxa5 Ne7 34. Rxe7+ Kh6 35. Rb5 Rb8 36. Rxb4 Kg5 37. Kf2 Rd8 38. Rb5+ Kh6 39. Be6 Rd2+ 40. Kg1

This line seems to hold onto the material so a little more searching is required.


Regards,

Forrest
Only 2 defining forces have ever offered to die for you.....Jesus Christ and the American Soldier. One died for your soul, the other for your freedom.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Is this a bug in Crafty 24.0 or...

Post by zullil »

[D]rq2k2r/3n1ppp/p2bpnb1/8/Np1N4/1B3PP1/PP2Q2P/R1BR2K1 w kq - 1 16

Here is the "best" line of play, according to Stockfish. Note that Be7 in response to Qxe6 is wrong (see below).

Code: Select all

info depth 42 seldepth 61 score cp 407 nodes 8420792652 nps 15062305 time 559064 multipv 1 pv d4e6 f7e6 e2e6 e8f8 d1d6 b8e8 c1d2 g6f7 e6f5 f7b3 a2b3 f8g8 a1e1 e8g6 f5f4 h7h6 e1e7 a8f8 f4d4 g8h7 e7d7 g6b1 g1g2 f6d7 d6d7 b1g6 d2b4 f8f7 d7f7 g6f7 a4c5 f7g6 c5e4 h8b8 d4c4 b8d8 c4c7 d8e8 g2f2 e8g8 h2h4 h7h8 f2g2 g8a8 c7c4
Here's Stockfish's take on what to do after Qxe6.

[D]rq2k2r/3n2pp/p2bQnb1/8/Np6/1B3PP1/PP5P/R1BR2K1 b kq - 0 17

Code: Select all

info depth 34 seldepth 67 score cp -395 nodes 2292681436 nps 10965098 time 209089 multipv 1 pv e8f8 d1d6 b8e8 c1d2 g6f7 e6f5 f7b3 d2b4 f8g8 a2b3 h7h5 a1e1 e8f7 b4d2 a6a5 d2a5 a8e8 e1e8 f7e8 a5c3 h8h6 c3d2 h6g6 a4c3 d7e5 c3d5 f6d7 d6g6 e5g6 f5h5 d7e5 f3f4 e8d7 f4e5 d7d5 h5g6 d5d4 g1f1

info depth 34 seldepth 67 score cp -566 nodes 2292681436 nps 10965098 time 209089 multipv 2 pv e8d8 d1d6 b8b5 a4b6 h8e8 d6d7 b5d7 e6d7 f6d7 b6a8 d7e5 c1g5 d8c8 b3d5 e5d3 a8b6 c8b8 b6c4 h7h6 g5e3 g6f5 a1d1 g7g5 c4d6 e8e3 d6f5 e3e5 d5e4 d3c5 d1d4 b4b3 a2b3 c5e4 f3e4 e5e6 d4c4 b8b7 g1f2 a6a5 f2e3

info depth 34 seldepth 67 score cp -664 nodes 2292681436 nps 10965098 time 209089 multipv 3 pv d6e7 d1e1 b8a7 g1g2 f6e4 e1e4 g6e4 e6e4 a8c8 c1g5 d7f6 e4e6 a7d7 e6f7 e8d8 a1d1 e7d6 g5f6 g7f6 f7f6 d8c7 f6d4 d7c6 b3d5 c6b5 d5e4 b5e5 d4a7 c7d8 a4b6 c8c2 g2f1 c2c7 d1d6 e5d6 a7a8 d8e7 b6d5 e7f7 a8h8 c7c1 f1g2 d6h6 h8d4 h6d6
Last edited by zullil on Fri Jun 13, 2014 2:55 am, edited 2 times in total.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Is this a bug in Crafty 24.0 or...

Post by bob »

zullil wrote:[D]rq2k2r/3n1ppp/p2bpnb1/8/Np1N4/1B3PP1/PP2Q2P/R1BR2K1 w kq - 1 16

Here is the "best" line of play, according to Stockfish. Note that Be7 in response to Qxe6 is wrong.

Code: Select all

info depth 42 seldepth 61 score cp 407 nodes 8420792652 nps 15062305 time 559064 multipv 1 pv d4e6 f7e6 e2e6 e8f8 d1d6 b8e8 c1d2 g6f7 e6f5 f7b3 a2b3 f8g8 a1e1 e8g6 f5f4 h7h6 e1e7 a8f8 f4d4 g8h7 e7d7 g6b1 g1g2 f6d7 d6d7 b1g6 d2b4 f8f7 d7f7 g6f7 a4c5 f7g6 c5e4 h8b8 d4c4 b8d8 c4c7 d8e8 g2f2 e8g8 h2h4 h7h8 f2g2 g8a8 c7c4
I probably introduced the Be7 "noise". With a 3 ply search, that is what Crafty thought was best, and that's when I began to wonder why the score changed so much from before to after Be7...
mvk
Posts: 589
Joined: Tue Jun 04, 2013 10:15 pm

Re: Is this a bug in Crafty 24.0 or...

Post by mvk »

Zenmastur wrote: I notice several people are making claims about how one program or another speculates. I'm not sure that is helpful.
It is not very helpful to use material-only as criterium for 'solving' a position. We are past that. Modern programs give huge evaluations for non-material aspects. Unlike 17 years ago.

Also, I would not put too much faith in the book learning capabilities of Crafty. It hasn't been worked on for ages. From my own testing, it isn't really working either. It appears as if it can't expand its book through learning, only effectively shrink it.
[Account deleted]