Invalid fen

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Aleks Peshkov
Posts: 892
Joined: Sun Nov 19, 2006 9:16 pm
Location: Russia

Re: Invalid fen

Post by Aleks Peshkov »

rrrrkr1R/rr1rr3/8/8/8/8/8/6K1 b af -
Can anybody check his Chess960 perft engine for divide 5?
mar
Posts: 2554
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Invalid fen

Post by mar »

Aleks Peshkov wrote:rrrrkr1R/rr1rr3/8/8/8/8/8/6K1 b af -
Can anybody check his Chess960 perft engine for divide 5?
Cheng agrees with your number here.
11194916

Code: Select all

Rxh8 29150
Rc8c7 281849
Rc6 368876
Rc5 369809
Rc4 370864
Rc3 364842
Rc2 279431
Rc1+ 46815
Rg8+ 56542
Ra6 378069
Ra5 392186
Ra4 406581
Ra3 412838
Ra2 325633
Ra1+ 54889
Rbc7 280939
Rb6 389230
Rb5 403634
Rb4 418309
Rb3 424513
Rb2 334041
Rb1+ 56799
Rdc7 290526
Rd6 397690
Rd5 411939
Rd4 426319
Rd3 431916
Rd2 337958
Rd1+ 58515
Rf7 236853
Rg7+ 32800
Rh7 47283
Re6 367536
Re5 366635
Re4 365643
Re3 357363
Re2 268995
Re1+ 46820
Kf7 304286
EDIT: which means we owe Henk an apology (note: I'm serious) because either Reinhard or us have a bug in movegen!
User avatar
Evert
Posts: 2929
Joined: Sat Jan 22, 2011 12:42 am
Location: NL

Re: Invalid fen

Post by Evert »

Aleks Peshkov wrote:rrrrkr1R/rr1rr3/8/8/8/8/8/6K1 b af -
Can anybody check his Chess960 perft engine for divide 5?
SjaakII:

Code: Select all

#[Chess] 0w>setboard rrrrkr1R/rr1rr3/8/8/8/8/8/6K1 b af - 
 8r r r r k r   R *
 7r r   r r       
 6                
 5                
 4                
 3                
 2                
 1            K   
  a b c d e f g h 
#[Chess] 0b (f)>perft 5 1
  Ra7-a1      54889      54889
  Ra7-a2     325633     380522
  Ra7-a3     412838     793360
  Ra7-a4     406581    1199941
  Ra7-a5     392186    1592127
  Ra7-a6     378069    1970196
  Rb7-b1      56799    2026995
  Rb7-b2     334041    2361036
  Rb7-b3     424513    2785549
  Rb7-b4     418309    3203858
  Rb7-b5     403634    3607492
  Rb7-b6     389230    3996722
  Rb7-c7     280939    4277661
  Rd7-d1      58515    4336176
  Rd7-d2     337958    4674134
  Rd7-d3     431916    5106050
  Rd7-d4     426319    5532369
  Rd7-d5     411939    5944308
  Rd7-d6     397690    6341998
  Rd7-c7     290526    6632524
  Re7-e1      46820    6679344
  Re7-e2     268995    6948339
  Re7-e3     357363    7305702
  Re7-e4     365643    7671345
  Re7-e5     366635    8037980
  Re7-e6     367536    8405516
  Re7-f7     236853    8642369
  Re7-g7      32800    8675169
  Re7-h7      47283    8722452
  Rc8-c1      46815    8769267
  Rc8-c2     279431    9048698
  Rc8-c3     364842    9413540
  Rc8-c4     370864    9784404
  Rc8-c5     369809   10154213
  Rc8-c6     368876   10523089
  Rc8-c7     281849   10804938
  Rf8-f1          0   10804938
  Rf8-f2          0   10804938
  Rf8-f3          0   10804938
  Rf8-f4          0   10804938
  Rf8-f5          0   10804938
  Rf8-f6          0   10804938
  Rf8-f7          0   10804938
  Rf8-g8      56542   10861480
  Rf8xh8      29150   10890630
  Ke8-f7     304286   11194916
 5   11194916  1.77   6338609.41nps
User avatar
SMIRF
Posts: 91
Joined: Wed Mar 26, 2014 4:29 pm
Location: Buettelborn/Hessen/Germany

Re: Invalid fen

Post by SMIRF »

Indeed, you are right. There something seems to be wrong with my new move generator. My old SMIRF generated:

Code: Select all

FEN: rrrrkr1R/rr1rr3/8/8/8/8/8/6K1 b kq - 0 5

=>+-*--b--c--d--*--*--g--h-+ Embarcadero RAD Pro C++ 32-Bit-Vers. 6.90
8 |&#91;r&#93;&#91;r&#93;&#91;r&#93;&#91;r&#93;&#91;k&#93;&#91;r&#93;   <R>| &#40;Compilation&#58; Apr  8 2015&#41;
7 |&#91;r&#93;&#91;r&#93;&#58;&#58;&#58;&#91;r&#93;&#91;r&#93;   &#58;&#58;&#58;   |
6 |   &#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;| Perft Testseries
5 |&#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;   |
4 |   &#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;| &#40;without caching&#41;
3 |&#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;   |
2 |   &#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;| Smirf Test No.&#58;  0
1 |&#58;&#58;&#58;   &#58;&#58;&#58;   &#58;&#58;&#58;   <K>   |
  +-a--b--c--d--e--f--g--h-+ Break Time&#58; +5.001 Sec.

Ply       Nodes      all &#40;x&#41;   &#40;ep&#41;           (+)   Prom.       Cstl.      Sec.
-------------------------------------------------------------------------------
1            39            1      0             7       0           0         0
2           376           33      0            33       0           0         0
3         18039          220      0          2877       0         204         0
4        204085         9724      0         10687       0           0         0
5      11194916       137417      0       1580468       0      109449     0.187
6     134393510      7249723      0       7075928       0           0     3.438
7    7780246283    112617238      0    1057026588       0    62336689     137.0
-------------------------------------------------------------------------------