ratosh / pirarucu

A Kotlin Chess Engine
GNU General Public License v3.0
36 stars 3 forks source link

Illegal move on TCEC #135

Closed ratosh closed 4 years ago

ratosh commented 5 years ago

Depth 23 move e7c7 is illegal Depth 24 move h7h8Q is illegal


21373140 >pirarucu 2.6.9(10): position startpos moves e2e4 e7e6 g1f3 d7d5 e4d5 e6d5 d2d4 g8f6 f1d3 c7c5 e1g1 c5c4 d3e2 b8c6 b2b3 c8e6 b3c4 d5c4 c2c3 a7a6 f3g5 e6d5 f1e1 f8e7 g5h3 b7b5 c1g5 e8g8 h3f4 f8e8 b1d2 d8c7
21373269 >pirarucu 2.6.9(10): isready
21373269 <pirarucu 2.6.9(10): readyok
21373269 >pirarucu 2.6.9(10): go wtime 691161 btime 1080345 winc 10000 binc 10000
21373269 <pirarucu 2.6.9(10): info depth 1 time 0 score cp 8 nps 0 nodes 1672822816 hashfull 491 pv e2f3 a8d8 a1b1 h7h6 g5f6 c7f4 f3d5 d8d5 f6e7 e8e7 
21373269 <pirarucu 2.6.9(10): info depth 2 time 0 score cp -938 nps 0 nodes 919530408 hashfull 491 pv e2f3 a8d8 a1b1 h7h6 g5f6 c7f4 f3d5 d8d5 f6e7 e8e7 
21373269 <pirarucu 2.6.9(10): info depth 2 time 0 score cp -7 nps 0 nodes 265990184 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 b5b4 d2c4 b4c3 c4d6 c6d4 
21373270 <pirarucu 2.6.9(10): info depth 3 time 0 score cp -692 nps 0 nodes 106000190 hashfull 491 pv e2f3 a8d8 a1b1 h7h6 g5f6 c7f4 f3d5 d8d5 f6e7 e8e7 
21373270 <pirarucu 2.6.9(10): info depth 3 time 0 score cp -7 nps 0 nodes 54761042 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 b5b4 d2c4 b4c3 c4d6 c6d4 
21373270 <pirarucu 2.6.9(10): info depth 4 time 0 score cp -27 nps 0 nodes 54792433 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 b5b4 d2c4 c6d4 c3d4 c7c4 
21373270 <pirarucu 2.6.9(10): info depth 4 time 0 score cp -52 nps 0 nodes 54832513 hashfull 491 pv e2f3 d5f3 d2f3 e7d6 d1c2 e8e1 f3e1 d6f4 
21373270 <pirarucu 2.6.9(10): info depth 4 time 0 score cp -56 nps 0 nodes 54877909 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 f4e2 f6d7 e2g3 h7h6 e1e8 a8e8 
21373270 <pirarucu 2.6.9(10): info depth 5 time 0 score cp -36 nps 0 nodes 54918057 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 h2h3 d6f4 g5f4 c7d7 a2a4 d7d5 
21373271 <pirarucu 2.6.9(10): info depth 6 time 0 score cp -36 nps 0 nodes 54967607 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 h2h3 d6f4 g5f4 c7d7 d2e4 f6e4 
21373271 <pirarucu 2.6.9(10): info depth 7 time 0 score cp 13 nps 0 nodes 54972396 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 h2h3 d6f4 g5f4 c7d7 d2e4 f6e4 
21373271 <pirarucu 2.6.9(10): info depth 7 time 0 score cp 13 nps 0 nodes 54977925 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 h2h3 e8f8 f4h5 d6h2 g1f1 
21373271 <pirarucu 2.6.9(10): info depth 7 time 0 score cp -7 nps 0 nodes 55020234 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 h2h3 d6f4 g5f4 c7d7 a1b1 f6d5 
21373271 <pirarucu 2.6.9(10): info depth 8 time 15 score cp -5 nps 3676063066 nodes 55140946 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 h2h3 d6f4 g5f4 c7d7 a2a4 e8e1 
21373272 <pirarucu 2.6.9(10): info depth 9 time 15 score cp 13 nps 3677559600 nodes 55163394 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 h2h3 d6f4 g5f4 c7d7 f4e5 f6d5 
21373272 <pirarucu 2.6.9(10): info depth 10 time 15 score cp 21 nps 3680424933 nodes 55206374 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 b5b4 d2c4 b4c3 g2g3 e8e1 
21373272 <pirarucu 2.6.9(10): info depth 11 time 15 score cp 1 nps 3684280333 nodes 55264205 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 e8e1 a1e1 a8e8 e1e8 f6e8 
21373272 <pirarucu 2.6.9(10): info depth 11 time 15 score cp 9 nps 3695659000 nodes 55434885 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 e8e1 a1e1 b5a4 d2c4 c6b4 
21373272 <pirarucu 2.6.9(10): info depth 12 time 15 score cp 9 nps 3703156866 nodes 55547353 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 b5b4 d2c4 b4c3 f3e4 
21373272 <pirarucu 2.6.9(10): info depth 13 time 15 score cp 23 nps 3718060933 nodes 55770914 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 h2h3 d6f4 g5f4 c7d7 a2a4 e8e1 
21373273 <pirarucu 2.6.9(10): info depth 14 time 15 score cp 12 nps 3725800933 nodes 55887014 hashfull 491 pv e2f3 a8d8 a1b1 h7h6 f4d5 f6d5 a2a4 h6g5 d1e2 
21373273 <pirarucu 2.6.9(10): info depth 15 time 31 score cp 8 nps 56876419 nodes 1763169 hashfull 491 pv e2f3 a8d8 a1b1 h7h6 g5f6 c7f4 f3d5 d8d5 f6e7 c6e7 
21373273 <pirarucu 2.6.9(10): info depth 16 time 93 score cp 0 nps 51357301 nodes 4776229 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 h2h3 d6f4 g5f4 c7d7 a2a4 e8e1 
21373273 <pirarucu 2.6.9(10): info depth 17 time 109 score cp 0 nps 51725752 nodes 5638107 hashfull 491 pv e2f3 a8d8 a1b1 h7h6 g5f6 c7f4 f6e7 c6e7 f3d5 e7d5 
21373298 <pirarucu 2.6.9(10): info depth 18 time 156 score cp 4 nps 53942717 nodes 8415064 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 f4h3 e8e1 a1e1 a8e8 e1e8 f6e8 
21373324 <pirarucu 2.6.9(10): info depth 19 time 187 score cp 24 nps 52564390 nodes 9829541 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 f4h3 e8e1 a1e1 a8e8 e1e8 f6e8 
21373379 <pirarucu 2.6.9(10): info depth 19 time 234 score cp 0 nps 54928658 nodes 12853306 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 b5b4 d2c4 b4c3 c4d6 c6d4 
21373406 <pirarucu 2.6.9(10): info depth 20 time 265 score cp 20 nps 54139328 nodes 14346922 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 b5b4 d2c4 b4c3 c4d6 c6d4 
21373427 <pirarucu 2.6.9(10): info depth 21 time 281 score cp 14 nps 55368512 nodes 15558552 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 f4h3 e8e1 a1e1 a8e8 e1e8 f6e8 
21373554 <pirarucu 2.6.9(10): info depth 22 time 406 score cp 5 nps 55068549 nodes 22357831 hashfull 491 pv e2f3 d5f3 d1f3 e7d6 a2a4 b5b4 d2c4 b4c3 c4d6 c6d4 
21373762 <pirarucu 2.6.9(10): info depth 23 time 625 score cp 0 nps 48618576 nodes 30386610 hashfull 491 pv e2f3 d5f3 e7c7 
21374120 <pirarucu 2.6.9(10): info depth 24 time 984 score cp 32766 nps 43533947 nodes 42837404 hashfull 491 pv h7h8Q 
ratosh commented 5 years ago

Hashfull stops increasing after 491, recheck TT index calculation for big hashes.

ratosh commented 5 years ago

Another illegal move on game 60, games after that will run with lower hash (4gb). It should take 150s to fully populate this hash size on that hardware.

ratosh commented 5 years ago

My tests:

ratosh commented 5 years ago

With big hashes the chance of having a zobrist key collision increases, to fix this issue we need to validate the movement.

ratosh commented 4 years ago

Fixed with TT move validation